Failure on declared page when converting pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mtdev
Posts: 3
Joined: 2019-01-07T10:11:12-07:00
Authentication code: 1152

Failure on declared page when converting pdf

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Failure on declared page when converting pdf

Post 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.
snibgo's IM pages: im.snibgo.com
mtdev
Posts: 3
Joined: 2019-01-07T10:11:12-07:00
Authentication code: 1152

Re: Failure on declared page when converting pdf

Post 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.
mtdev
Posts: 3
Joined: 2019-01-07T10:11:12-07:00
Authentication code: 1152

Re: Failure on declared page when converting pdf

Post 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
Post Reply