Re: Problem with PDF file genreated by Notes application on maCOS
Tom Kacvinsky <[email protected]> Sat, 21 Jul 2018 16:39:00 -0400
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
> On Jul 21, 2018, at 16:04, Ken Sharp <[email protected]> wrote: > > At 15:40 21/07/2018 -0400, Tom Kacvinsky wrote: > > >> I have PDF file generated by the Notes application on macOS. >> >> I *think* I have narrowed it down to the following objects which cause a problem (PyPDF2 barfs on these objects, anyway); >> >> 12 0 obj >> << /Length 13 0 R /Type /XObject /Subtype /Image /Width 0 /Height 0 /ColorSpace >> /BitsPerComponent 16 /Filter /FlateDecode >> >> stream >> <binary date> >> endstream >> endobj > > > An Image XObject with a Width and Height of 0 is pointless, but not actually invalid. > > The lack of a value to associate with the ColorSpace key, however makes these invalid. > > >> I can provide the PDF file off list, as well as the ghostscript error message when reading the PDF files. > > If you think you've found a bug in Ghostscript, then please report a bug. This forum is for discussing Ghostscript development, not bug reports. > > I'm also unclear on why you think this is our bug. Ah, sorry about that. I looked for a general Ghostscript discussion forum, but didn’t see one, hence the mail to this list. I don’t think it’s a bug in Ghostscript - I find it it one of the better PDF interpreters out there, catching things that Acrobat doesn’t, or Apple’s Preview application. Anyway, your information confirms what I suspected, so I have something to go on now Thanks, and I’ll not send general questions to this list again. Tom