All of the pieces you need are in iText - they are just LOW LEVEL pieces that you will need put together to make this work.
You'll need to start by reading and understanding the PDF standard (ISO 32000-1:2008) about exactly what an appearance stream is, how it is used, etc. Then you can use the pieces in iText to create one, connect it up, and voila. NOT trivial - but certainly well defined and doable. Leonard On 1/16/12 6:02 AM, "Rob" <rafri...@gmail.com> wrote: > >Paulo Soares-3 wrote >> >> Let's take the Line annotation. The annotation parameters describe the >> line. You'll have to create a PdfTemplate with the actual graphic >> representation of the line using moveTo(), lineTo() and others. >> > >I have limited experience with appearances in PDF. Initially I thought >that >the AP key was the only thing needed to make an annotation display in this >instance. > >I've since been reading and am getting an idea that the AP key mentioned >is >just a pointer to a different section in the pdf referred to as an >appearance which is a graphical representation of the original annotation. >This is used in place of the annotation when a reader cannot render >annotations from the basic vector info provided. Is this correct? > >If so, I am wondering whether I will be able to employ this solution as >I'm >still a little confused whether I can build this graphical representation >from the original vector information or whether I need to manually create >a >pdf with AP included which I need to read from? (manual intervention would >make attempts to script this process pointless). > >Considering another way forward, is iText capable of completely flattening >the annotation so that it all becomes a rendered part of the main layer? I >assume I would lose any separate annotation data but this is acceptable if >it will create a document that displays as intended on the Ubuntu viewers. > >-- >View this message in context: >http://itext-general.2136553.n4.nabble.com/createInk-not-displaying-in-PDF >-on-Ubuntu-Linux-tp4292565p4299563.html >Sent from the iText - General mailing list archive at Nabble.com. > >-------------------------------------------------------------------------- >---- >RSA(R) Conference 2012 >Mar 27 - Feb 2 >Save $400 by Jan. 27 >Register now! >http://p.sf.net/sfu/rsa-sfdev2dev2 >_______________________________________________ >iText-questions mailing list >iText-questions@lists.sourceforge.net >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 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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