----- Original Message -----
From: "Michael Schierl" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
<[email protected]>
Sent: Friday, June 22, 2007 10:43 PM
Subject: [iText-questions] [patch] Allow reading page label structure
towrite out later
> Hi,
>
> just another patch (against current SVN). This time I want to allow
> users to tweak page labels, so I need to be able to read the old page
> labels from a PDF in a format suitable for tweaking (and getting a
> String[] with all labels is not, in my opinion). Other solutions to
> solve my problem are, of course, welcome as well.
>
I'll have a look.
> By the way: What is the reason that this code here does not work?
>
> FileOutputStream fos = new FileOutputStream("...");
> PdfStamper stamper = new PdfStamper(currentReader, fos);
> stamper.getWriter().setPageLabels(lbls);
> stamper.close();
>
> It copies the PDF, but does not set page labels.
> I got it working by using a PdfCopy and importing every page separately.
> Is there an easier solution?
>
I'll have a look.
> TIA,
>
> Michael
>
> (not subscribed to mailing list any longer due to high traffic)
You can be subscribed and disable the mail delivery.
Paulo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/