Hello all, we have here some pdfs where PoDoFo complains about a missing trailer.
First of all I thought we have invalid pdfs, but I checked the actual Pdf spec at http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf and I found the following in section 7.5.8.1: "The value following the startxref keyword shall be the offset of the cross-reference stream rather than the xrefkeyword. For files that use cross-reference streams entirely (that is, files that are not hybrid-reference files; see 7.5.8.4, "Compatibility with Applications That Do Not Support Compressed Reference Streams"), the keywords xref and trailer shall no longer be used. Therefore, with the exception of the startxref address %%EOFsegment and comments, a file may be entirely a sequence of objects." This tells that the trailer as a stand-alone dictionary in the finishing section of the document is not required anymore if you use a pure XRef stream style PDF. The trailer data in this case are put into the Xref stream dictionary. So there are indeed cases where a PDF legitimately does not have a trailer. Correct? I checked our pdf and found the information in this dictionary. Any ideas to get PoDoFo working with those types of Pdf? Does PoDoFo support this already? Best Regards Sebastian PS: Some of these pdfs contained a file trailer "old" style produced with an old version of Adobe Acrobat in Pdf 1.2. We needed these documents in an actual Pdf version, therefore we saved it with the actual Adobe Acrobat 9.2.0 and the trailer "old" style containing a trailer keyword followed by a trailer dictionary disappeared! Acrobat shouldn't do this automatically... ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
