convert command outputs file with poor quality
Posted: 2014-03-29T23:37:31-07:00
I am trying to attach another image to a .pdf file and the resulting output will be a .pdf file.
Running identify on the existing .pdf file gives the following message-
**** Warning: File has an invalid xref entry: 2. Rebuilding xref table.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
**** Warning: File has an invalid xref entry: 2. Rebuilding xref table.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
I get the same message if I try to use 'convert' as mentioned below, to attach another image to this file to produce a new .pdf output file. I get an output file, however, it is of poor quality.
convert myjpg.jpg myoriginal.pdf myNewPdf.pdf
Is there a workaround to produce a .pdf file of reasonable quality from my original .pdf file so the document is readable?
The ImageMagick version I am using is 6.8.x
Thanks,
Running identify on the existing .pdf file gives the following message-
**** Warning: File has an invalid xref entry: 2. Rebuilding xref table.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
**** Warning: File has an invalid xref entry: 2. Rebuilding xref table.
**** Warning: stream operator not terminated by valid EOL.
**** Warning: stream operator not terminated by valid EOL.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
I get the same message if I try to use 'convert' as mentioned below, to attach another image to this file to produce a new .pdf output file. I get an output file, however, it is of poor quality.
convert myjpg.jpg myoriginal.pdf myNewPdf.pdf
Is there a workaround to produce a .pdf file of reasonable quality from my original .pdf file so the document is readable?
The ImageMagick version I am using is 6.8.x
Thanks,