Print Page | Close Window

Is keyword "trailer" allways needed

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: PDF Developers
Forum Description: This conference is for PDF developers.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2232
Printed Date: 16 Dec 2017 at 4:46pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Is keyword "trailer" allways needed
Posted By: spongebob
Subject: Is keyword "trailer" allways needed
Date Posted: 21 Aug 2017 at 2:37pm
Hello, dear community
From the document PDF 32000-1:2008, I have understanded, that pdf-file allways must have keyword „trailer“. But attached file not contains this keyword. Is it OK?
Thanks im advance for help
uploads/1345/Te.Standard.pdf - uploads/1345/Te.Standard.pdf



Replies:
Posted By: BAlheit
Date Posted: 21 Aug 2017 at 3:30pm
A correct PDF file must have a trailer, but not the keyword trailer.


Posted By: spongebob
Date Posted: 21 Aug 2017 at 6:19pm
Originally posted by BAlheit BAlheit wrote:

A correct PDF file must have a trailer, but not the keyword trailer.

Cann you tell me, please, where is it writed.

Because I have found only in PDF 32000-1:2008  (7.5.5 File Trailer) namely
"The startxref line shall be preceded by the trailer dictionary, consisting of the keyword trailer followed by a series of key-value pairs enclosed in double angle brackets"

But in reality I see pdf-file without keyword "trailer"

Is there in other document?

Thanks in advance


Posted By: mattk
Date Posted: 25 Aug 2017 at 11:02pm
The PDF file you attached uses object streams, including a cross-reference stream that contains the trailer entry - see section 7.5.8.1 of 32000-1. For PDF files of this sort, you cannot assume that you will find an uncompressed "trailer" keyword visible near the end of the file. Instead, you must process the cross-reference stream to get the trailer (and the cross-reference table) information.


Posted By: spongebob
Date Posted: 29 Aug 2017 at 2:25pm
Thank you



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net