Loading...

Annotations in All pages

Support for GdPicture XMP Annotations Plugin.

Annotations in All pages

Postby golisatish » Wed Jul 06, 2011 1:08 pm

Is it possible to Save All annotations(for all pages in Displayed Document) in single ".xmp" file.
golisatish
 
Posts: 2
Joined: Wed Jul 06, 2011 1:02 pm

Re: Annotations in All pages

Postby Loïc » Thu Jul 07, 2011 4:43 pm

Hi,

Currently this is not possible. We will bring a similar feature within a future release.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Annotations in All pages

Postby golisatish » Wed Dec 28, 2011 11:19 am

Is it possible to load and save all pages Annotations in a single file in Version 8.5?
golisatish
 
Posts: 2
Joined: Wed Jul 06, 2011 1:02 pm

Re: Annotations in All pages

Postby Loïc » Wed Dec 28, 2011 6:27 pm

Hi,

We do not provide direct method for that. Anyway you can manage to create your own file structure.
We now provide an AnnotationManager class that helps to read/write annots from documents, at page level.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Annotations in All pages

Postby RobertHorn » Fri Jan 20, 2012 10:29 am

Hi Loic,

What is happening on being able to save the annotations for all pages? I see that in the current version it only saves the first page.

If this is not possible, and there is no immediate intention to provide this functionality, can you let me know how else I can do this?

Regards
Robert
RobertHorn
 
Posts: 14
Joined: Fri Jan 20, 2012 8:18 am

Re: Annotations in All pages

Postby Loïc » Fri Jan 20, 2012 12:48 pm

Hi,

What is happening on being able to save the annotations for all pages?


This is still not yet implemented and the feature implementation have been postponed for within 5 months. However, you can easily manage to do it by yourself in your app.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Annotations in All pages

Postby Loïc » Fri Jan 20, 2012 8:02 pm

Here a suggestion to save all page annot to an xml file structure:

- Create X memoryStream (X is your number of page)
- Load the document using an AnnotationManager object (see sample above)
- using the annotationManager object, brows all page and save each page annot content to the good stream.

At this stage you will have all annotation information stored in memory stream, one stream per page. So you have to create your own file structure that you can write/parse. XML is a good option.

IE:
Code: Select all
<GdPictureAnnotationsContainer>
 <PageAnnots>
    <PageNo>1</PageNo>
    <Content> [CONTENT OF THE FIRST STREAM HERE] </Content>
 </PageAnnots>
 <PageAnnots>
    <PageNo>2</PageNo>
    <Content> [CONTENT OF THE SECONDSTREAM HERE] </Content>
 </PageAnnots>
</GdPictureAnnotationsContainer>




To write & parse the XML file, i suggest you to use the XmlTextReader class. You will find lof of example over the web to use it.

Kind regards,

Loïc
</myAnnotationContainer>
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4445
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture XMP Annotations Plugin

Who is online

Users browsing this forum: No registered users and 1 guest