I did read the PDF reference, so maybe I asked the question wrong. If I have a 
group of Page dictionaries that I got from traversing
an outline, how do I create a new pdf having just those pages? It's easy to add 
pages if I know the page number. But since the page
entries only have references like 55 0 R, how do I get that into a new 
document. The problem I am trying to resolve is that I can't
be certain that the pages are consecutive, with no gaps. So I can't simply use 
the reader to get pages 1 - 8, then 9 - 12, then 13 -
27, etc... I am trying to find a way to use a collection of

---------------------------------
Dictionary of type: /Page :
/Parent = 55 0 R
/Contents = 53 0 R
/Type = /Page
/Resources = 5 0 R
/MediaBox = [0, 0, 498, 792]
---------------------------------

To create a new pdf. How do I get the above onto a new PDF?

Edward W. Rouse
ComSquared Systems, Inc.



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Bruno Lowagie
> Sent: Wednesday, February 13, 2008 2:00 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] get a page number from a PdfDictionary
>
>
> Edward W. Rouse wrote:
> > I have been searching the mailing list archives and using
> Google for
> > hours and haven't found the answer, so I am asking here.
>
> Have you read the PDF Reference?
> There's no such thing as page numbers in the page(s) dictionary.
> There's the page tree from which you can retrieve the order
> of the pages, and as soon as you know the order, you know
> the page number. Therefore there's no need to store the page
> number in any page or pages dictionary. Maybe you are confusing
> with page labels; if so, please consult the API for PdfPageLabels.
> http://itext.ugent.be/library/api/com/lowagie/text/pdf/PdfPage
Labels.html#getPageLabels(com.lowagie.text.pdf.PdfReader)

br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to