voyent
IcePdf TextMarkupAnnotaion Preload  XML
Forum Index -> ICEpdf General
Author Message
sara.delgrosso@udanet.it

Joined: 04/Mar/2014 04:39:36
Messages: 7
Offline


Is there a metod to create new "TextMarkupAnnotation" before the document view is created? Thank you.
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


Take a look at the example ./examples/annotation/NewAnnotationPrePageLoad.java as it shows how to create an annotation before the PageView is created.

In the viewer RI source code is the class org.icepdf.ri.common.tools.HighLightAnnotationHandler.java which handles the UI based annotation creation. Take a look at the createTextMarkupAnnotation() method, all you need to do is copy a few line of code into the NewAnnotationPrePageLoad example.



[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team