Skip navigation
Currently Being Moderated

haw i get the last trailer?

Jul 27, 2012 3:02 AM

Tags: #trailer

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?

 
Replies
  • Currently Being Moderated
    Jul 27, 2012 5:05 AM   in reply to bigboss djo

    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

     

    khk@khk.net

    http://www.khkonsulting.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 5:18 AM   in reply to bigboss djo

    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

     

    khk@khk.net

    http://www.khkonsulting.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 5:33 AM   in reply to bigboss djo

    That trailer at the beginning is the linearization table.  See the relevant Annex in ISO 32000-1:2008

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 5:54 AM   in reply to bigboss djo

    Ignore the linearization table – just as described in ISO 32000-1:2008.  You have read that, right??

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points