dayvidpow wrote:
> Because we are not using PdfStamper. Instead the catalog is obtained via
> PdfReader , then we are directly manipulating the catalog updating things
> like structure (tags), bookmarks, annotations, etc.. and then directly
> writing out the updated bytes.
>
> So the question is if I have the catalog in hand, can't I just add the
> pagelabels to that catalog? If so how can this be done? Would i need to do
> something else ?
If you have the catalog in hand, it is very easy to add new keys
and values to it. The catalog object is just a PdfDictionary object.
You could do catalog.put(PdfName.PAGELABELS, pagelabeldictionary);
where pagelabeldictionary is a PdfDictionary containing the stuff
as described in the PDF Reference.
However: you are not telling us:
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)
2) why you don't want to use the designated method.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
-------------------------------------------------------------------------
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