i start from the end of the document, then i read the startxref and locate the xref, then i parse the crossrefrence and get the trailer.
i dot this operation recursively but when i finish my parse haw i know the last trailer?
so i compare the size value of all trailer and i choose the trailer having max size?
I don't quite understand what you are asking.
Are you asking how to determine that you've reached the first (and
original) trailer dictionary in a file with incremental updates? If so,
it's the trailer that does not have a Prev entry. If that's not the answer
to your question, can you please try to rephrase your question.
Karl Heinz Kremer
PDF Acrobatics Without a Net
Incremental updates only append to the document, so you would look at the
end of your file. The trailer that you find there is the last incremental
update that was applied to that document.
If you want another way to identify it, it's the one that no Prev entry of
any of the other trailer sections point to.
Karl Heinz Kremer
PDF Acrobatics Without a Net
Not every time that the Incremental updates only append to the document, because i have %PDF-1.5 a pdf that contains the original trailer in the end and the new Trailer in begin of document. and this is can make me a big problem when i try to parse and find all subsection and the lat trailer
North America
Europe, Middle East and Africa
Asia Pacific