Jump to content
We've recently updated our Privacy Statement, available here ×

Paging question


jambalaya

Recommended Posts

Hi. Could someone please tell me at which stage is the total number of pages known?

I configured a PDF exporter to export only page 1 (the second one), and to my surprise the "page 1 of X" field worked correctly. So, how is the page count known, how does this work?

1. the number of pages is somehow known before the actual PDF document generation is done, but I fail to see how this can be

or

2. the whole document is created (3 pages in this case), and then only the bytes for page 1 are written to the stream I supplied, plues all necessary PDF headers and trailers

or

3. some other ingenious way I cannot see now

Which one is the case?

 

Best regards.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...