I can confirm this problem on Ubuntu 16.04 and ghostscript
9.26~dfsg+0-0ubuntu0.16.04.1:

$ gs --version
9.26
$ convert "confidential.pdf[0]" confidential.png
convert: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE 
-dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 
"-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" 
-dFirstPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-12412a591aAW0c1rp%d" 
"-f/tmp/magick-12412pbD9WU9tgyvz" "-f/tmp/magick-12412_OoIhBmXubzJ"' (-1) @ 
error/delegate.c/ExternalDelegateCommand/461.
convert: no images defined `confidential.png' @ 
error/convert.c/ConvertImageCommand/3210.

The problem doesn't happen with ghostscript
9.25~dfsg+1-0ubuntu0.16.04.3:

$ dpkg --install libgs9_9.25~dfsg+1-0ubuntu0.16.04.3_amd64.deb 
libgs9-common_9.25~dfsg+1-0ubuntu0.16.04.3_all.deb 
ghostscript_9.25~dfsg+1-0ubuntu0.16.04.3_amd64.deb 
ghostscript-x_9.25~dfsg+1-0ubuntu0.16.04.3_amd64.deb
$ gs --version
9.25
$ convert "confidential.pdf[0]" confidential.png
$ identify confidential.png
confidential.png PNG 595x842 595x842+0+0 8-bit sRGB 22.5KB 0.000u 0:00.000

Not every PDF is affected by this problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1806517

Title:
  Ghostscript segmentation fault onb PDF using -dFirstPage and
  -dLastPage

To manage notifications about this bug go to:
https://bugs.launchpad.net/gs-gpl/+bug/1806517/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to