Page 1 of 1

Failure on declared page when converting pdf

Posted: 2019-01-08T03:28:02-07:00
by mtdev
Hi,

I'm trying to get ImageMagick and ghostscript working on a windows 10 pc.

I've run in to an issue when trying to convert a pdf page where the page has a transparent object set on it. This can be an embedded image or a shape with opacity set to less than 100%.

This only occurs when you declare a page number

This works fine on a single page pdf - the pdf has a transparent image embedded

Code: Select all

convert pdf5.pdf pdf5.jpg
If if run this code ImageMagick crashes:

Code: Select all

convert pdf5.pdf[0] pdf5.jpg
Is there anything I can do to remedy the issue.

I'm running
ImageMagick-7.0.8-Q16
GhostScript 9.26

Thanks

Re: Failure on declared page when converting pdf

Posted: 2019-01-08T05:29:14-07:00
by snibgo
There have been reports than Ghostscript v9.26 has problems. I suggest you downgrade to an older version eg 9.23.

If that doesn't help, post a link to a sample PDF with the problem.

Re: Failure on declared page when converting pdf

Posted: 2019-01-08T06:59:12-07:00
by mtdev
snibgo wrote: 2019-01-08T05:29:14-07:00 There have been reports than Ghostscript v9.26 has problems. I suggest you downgrade to an older version eg 9.23.

If that doesn't help, post a link to a sample PDF with the problem.
That seemed to do the trick for command line on windows 10, I still get the error in xmapp though.

Re: Failure on declared page when converting pdf

Posted: 2019-01-08T07:10:00-07:00
by mtdev
I found the issue - there was some existing php code trying to get the width/height of the pdf

Thanks for your help