1

I was trying convert a pdf to an image when I got this error. I have since converted the pdf to an image using a screenshot tool, but Im concerned that when I work more with the person that provided me the source PDF, that I will see see this error more. I'd like to know if there is a way to prevent it.

lol:~/public_html/images/Poster$ convert Gordon\ conference\ \ water\ 2018\ 36x48.pdf GCW2018.png

   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.
   **** Warning: considering '0000000000 XXXXX n' as a free entry.

   **** This file had errors that were repaired or ignored.
   **** The file was produced by: 
   **** >>>> Mac OS X 10.12.6 Quartz PDFContext <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

yes, the source pdf came from a Mac.

j0h
  • 15,365

1 Answers1

0

This is an issue with Mac OS Sierra incorrectly encoding the PDF file, that causes GhostScript (which is what convert uses behind-the-scenes to do the conversion) to throw such an error.

You can instead try to use pdftoppm which in my experience creates better quality pngs as well

Install: sudo apt-get install poppler-utils

Usage: pdftoppm input.pdf outputname -png

Amith KK
  • 13,547