Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, April 7, 2017 9:11:13 AM(UTC)

Roberto  
Roberto

Groups: Registered, Tech Support, Administrators
Posts: 39

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)

With LEADTOOLS, loading annotations is done through the AnnCodecs Class

This class supports loading and saving annotation objects from/to XML strings as well as getting information about previously saved annotations data.
This class also supports saving and loading multi-page annotation data where each page contains a full Annotation Container.

Use the AnnCodecs.LoadAll, LoadAllFromString or AnnCodecs.LoadAllAsync methods to load all the annotation containers from a multi-page XML file or data.

https://www.leadtools.co.../anncodecs--members.html

Loading annotations is as simple as the following:

Code:
AnnContainer container = new AnnContainer();
AnnCodecs codecs = new AnnCodecs();
container = codecs.Load("PATH TO XML file", 1);


LEADTOOLS also has support for embedded annotations in formats like TIFF and PDF.

For TIFF it should be sufficient to pass the TIFF into the AnnCodecs.Load() call.

For PDF, when parsing you should set the PDFParsePagesOptions to All or Annotations. Doing so will populate the PdfDocumentPage.Annotations collection if any PDF Annotations are found. https://www.leadtools.co...dfparsepagesoptions.html

Code:
// Parse everything and for all pages 
PDFParsePagesOptions options = PDFParsePagesOptions.All; 
document.ParsePages(options, 1, -1); 

Edited by moderator Friday, April 7, 2017 3:19:21 PM(UTC)  | Reason: Not specified

Roberto Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2017, Yet Another Forum.NET
This page was generated in 0.129 seconds.