Stefan Woltering wrote:

I spent my last two nights looking for a solution in the PDF Reference, so please no more hide&seek games.

I can't even give you an estimation of the number of nights
I have spent on iText for free over the past seven years, so
tell me: why should I spend time on your question? *LOL*


I just thought there might be something special for inserting a reference to
a dictionary value.
I don't use these methods that change PdfDictionary entries a lot,
so I have to consult the API docs myself whenever I need them:
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfReader.html
There are some getObject methods that return a PdfObject:
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfObject.html

One of the possible object types is PdfDictionary:
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/PdfDictionary.html
there's a get(PdfName key) method to get the value corresponding with a
certain key (for instance the /Type key).
There's also a method put(PdfName key, PdfObject value)
to change the value of a dictionary entry.

But if not, disregard this part of my question - I can handle it as soon as
I know the right PDF syntax.

I forgot what you needed this for, but didn't Paulo gave
you a solution for the problem you tried to solve.
If you don't know PDF syntax, don't use the methods
I just pointed you too. Use the example provided by Paulo.
br,
Bruno


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to