Nevermind, not my brightest day :-) ... I suppose to add custom key-value pair to annotation objects, I just do getObject() on the annotation, then setString(...) on that object to add my custom field.
On 10 Nov 2010, at 16:17, Leonard Rosenthol wrote: > 1 - use a custom second class dictionary key as described in ISO 32000-1, > Annex E. Be sure to register your prefix as described there as well. > > 2 - Sure. Just set the text render mode to 3 when drawing. > > -----Original Message----- > From: Matias Piipari [mailto:[email protected]] > Sent: Wednesday, November 10, 2010 10:35 AM > To: [email protected] > Subject: [Podofo-users] Including identifiers with annotations + hidden text > in PDFs > > Hi everyone > > I have two PoDoFo related questions to ask. Any pointers with either of these > is much appreciated. > > 1) Including an identifier with annotations. > > I have written an application X which modifies a PDF document by adding > annotations to it, using PoDoFo. Is there a way to associate some > non-user-visible field to the annotation objects to identify them uniquely? > Basically I'd like to store the information in the document about which of > the annotations included in it have been created with my application X. > > 2) A hidden text layer. > > Is it possible to include a hidden text layer into a PDF document using > PoDoFo? I have seen PDF documents, especially OCRd ones, which have text > which is not seen by default, but when you do a selection, it becomes > highlighted. > > Thanks > Matias > > > Matias Piipari > - - - - - - - - - - - > http://twitter.com/mz2 > > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Podofo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users Matias Piipari - - - - - - - - - - - http://twitter.com/mz2 ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
