Does this bug also occur if there are no embedded fonts in a pdf? Because my canon scanner seems to produce pdfs without embedded fonts, at least pdffonts shows no fonts:
$ pdffonts SCN_0002.pdf
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
and i get a very similar error when trying to minimize the filesize with ghostscript:
$ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -sOutputFile=out.pdf SCN_0002.pdf
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
**** Error reading a content stream. The page may be incomplete.
**** File did not complete the page properly and may be damaged.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> MP540 series <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
Does this bug also occur if there are no embedded fonts in a pdf? Because my canon scanner seems to produce pdfs without embedded fonts, at least pdffonts shows no fonts: ------- ------- ------- ------- - ----------------- ---------------- --- --- --- ---------
$ pdffonts SCN_0002.pdf
name type encoding emb sub uni object ID
-------
and i get a very similar error when trying to minimize the filesize with ghostscript:
$ gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibility Level=1. 4 -dPDFSETTINGS= /printer -sOutputFile= out.pdf SCN_0002.pdf
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
**** Error reading a content stream. The page may be incomplete.
**** File did not complete the page properly and may be damaged.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> MP540 series <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
With the minimal gs version from http:// www.ghostscript .com/download/ gsdnld. html its working flawlessly.
i attached a pdf created by my scanner to this comment.
(i m using ubuntu 15.10)