Created attachment 1362199 [details] an encrypted pdf file, pasword is "secret" Description of problem: /usr/bin/convert fails to open an encrypted file Version-Release number of selected component (if applicable): ImageMagick-6.9.9.22-1.fc27.x86_64 How reproducible: 100% Steps to Reproduce: 1. create an encrypted.pdf (see attached; password is "secret") 2. convert -background white -flatten -density 150 -trim -authenticate secret /tmp/encrypted.pdf /tmp/flat.png Actual results: convert: PDFDelegateFailed `[ghostscript library 9.22] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r150x150' '-sOutputFile=/tmp/magick-4332_57wIZMiFLOu%d' '-f/tmp/magick-4332KexjCn9osNl2' '-f/tmp/magick-43324AoJZIvvYTSz'': **** This file requires a password for access. Error: /invalidfileaccess in pdf_process_Encrypt Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1999 1 3 %oparray_pop 1998 1 3 %oparray_pop 1982 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push Dictionary stack: --dict:988/1684(ro)(G)-- --dict:1/20(G)-- --dict:83/200(L)-- --dict:83/200(L)-- --dict:133/256(ro)(G)-- --dict:301/450(ro)(G)-- --dict:28/32(L)-- Current allocation mode is local GPL Ghostscript 9.22: Unrecoverable error, exit code 1 @ error/pdf.c/InvokePDFDelegate/277. convert: no images defined `/tmp/flag.png' @ error/convert.c/ConvertImageCommand/3258. Expected results: flat image produced Additional info: I believe that this regressions was introduced fc26, but only now have I bothered to file the bug. ImageMagick-6.7.8.9-15.el7_2.x86_64 works fine.
Looks like upstream can't figure out how to fix it. https://www.imagemagick.org/discourse-server/viewtopic.php?t=31530 Please report it upstream and maybe they will apply whatever patch they said fixes it. I haven't seen the patch otherwise I would apply it.
This message is a reminder that Fedora 27 is nearing its end of life. On 2018-Nov-30 Fedora will stop maintaining and issuing updates for Fedora 27. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '27'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 27 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Should be fixed in the latest upstream release. If not please reopen.