Pdf conversion is losing graphics and text

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
cyclondude
Posts: 6
Joined: 2013-03-14T12:14:25-07:00
Authentication code: 6789

Pdf conversion is losing graphics and text

Post by cyclondude »

Hello. I just recently moved to using ImageMagick to automate pdf conversions. I am running into trouble with convert missing some graphics from the original. The first page (and continuing pages) of the pdf at

http://www.muni.org/Departments/finance ... ection.pdf

is selective about what it chooses to include in the converted output when I use: convert file.pdf[1] newfile.png . Or any other extension including pdf. These files I'm interested in are primarily just scanned copies too.

The file I end up with looks like:

http://s21.postimage.org/j0c4sz2s7/newfile.png

I'm running windows 7 32-bit
ImageMagick-6.8.3-9-Q16-x86
Ghostscript 9.05

Thanks for any help.
Last edited by cyclondude on 2013-03-14T13:44:11-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Pdf conversion is losing graphics and text

Post by snibgo »

It converts fine for me, IM 6.8.3-0 in Windows 7.

The newfile.png you posted is the second page of the report. According to Adobe Reader, it has no graphics. The first page does, and they are shown on the first PNG output.

(But it looks to me that the PDF contains exactly one graphic per page, being a scan of the entire page.)
snibgo's IM pages: im.snibgo.com
cyclondude
Posts: 6
Joined: 2013-03-14T12:14:25-07:00
Authentication code: 6789

Re: Pdf conversion is losing graphics and text

Post by cyclondude »

Thanks. I was using file.pdf[1] (which I edited to show in my first post to avoid further confusion) when I should have used file.pdf[0].
Post Reply