> You could do catalog.put(PdfName.PAGELABELS, pagelabeldictionary);
> where pagelabeldictionary is a PdfDictionary containing the stuff
> as described in the PDF Reference.

That is exactly what i am trying to do. I have a PdfPageLabels object
containing the custom page labels i want to add to the PDF. Now I need to
convert that PdfPageLabel object to a PdfDictionary, however I don;t have
access to the PdfPageLabel.getDictionary() method - its package private. An
in any case i don;t have the PdfWriter. So I think the only missing piece
here is getting a PdfDictionary object from my existing PdfPageLabels
object. How can that be done using iText?


>1) where you want to use that catalog (important because you can obtain
>    it from PdfReader, but that doesn't mean a thing if you are using
> PdfWriter)

We are getting the Catalog from the PdfReader. 

> 2) why you don't want to use the designated method.

Because we are not using PdfStamper. Instead we are using PdfReader to read
the PDF itself then update the various things and finally writing out the
results as just raw bytyes. We had to do this because we wanted to do some
accessibility tagging restructuring (not in iText).






-- 
View this message in context: 
http://www.nabble.com/Adding-PageLabels-directly-to-the-PDF-catalog-dictionary-tp19689706p19712521.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to