As you've noticed, iText doesn't have any high-level support for
annotations beyond "widget" annotations (form fields).  You have to
directly manipulate the low level PDF structures.

To learn what's possible, you should check out the PDF Specification,
chapter 12 (interactive features), section 5 (annotations).  There are 2
kinds of text annotations defined in 12.5.6 (annotation types):
*Text Annotaions: 12.5.6.4
*Free Text Annotations 12.5.6.6

The spec defines which dictionary keys mean what, so you'll know what
you need to get and set.

While ISO Specifications usually Cost Money, Adobe has arranged with ISO
to distribute the PDF Specification, ISO "32000-2008" for free online:

http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008.
pdf

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: alex_2292 [mailto:[email protected]] 
> Sent: Wednesday, April 20, 2011 8:33 AM
> To: [email protected]
> Subject: Re: [iText-questions] how to save modiefied annotation text
> 
> ok,so it's only a text annotation,the same type created by 
> adobe right?
> so can I modify the content as I have told you working on the 
> PdfDictionary?
> Es.
> 
> PdfDictionary f = ....
>      f.put(PdfName.F, new PdfString("some new text"));
> 
> etc etc
> 
> ok...thanks,you have answered and explained problem of mine,I 
> need necessary use different Title to recover one of it when 
> I need.This means that all the Annotation Object created are 
> by me are equal?..is possible to use custom attribute and not 
> work with title?
> 
> thanks for help
> 
> 
> --
> View this message in context: 
> http://itext-general.2136553.n4.nabble.com/how-to-save-modiefi
ed-annotation-text-tp3462519p3463366.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> --------------------------------------------------------------
> ----------------
> Benefiting from Server Virtualization: Beyond Initial 
> Workload Consolidation -- Increasing the use of server 
> virtualization is a top priority.Virtualization can reduce 
> costs, simplify management, and improve application 
> availability and disaster protection. Learn more about 
> boosting the value of server virtualization. 
> http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: 
> http://www.itextpdf.com/book/ Please check the keywords list 
> before you ask for examples: http://itextpdf.com/themes/keywords.php
> 
> 

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to