Annotations in All pages
-
- Posts: 5
- Joined: Wed Jul 06, 2011 1:02 pm
Annotations in All pages
Is it possible to Save All annotations(for all pages in Displayed Document) in single ".xmp" file.
Re: Annotations in All pages
Hi,
Currently this is not possible. We will bring a similar feature within a future release.
Kind regards,
Loïc
Currently this is not possible. We will bring a similar feature within a future release.
Kind regards,
Loïc
-
- Posts: 5
- Joined: Wed Jul 06, 2011 1:02 pm
Re: Annotations in All pages
Is it possible to load and save all pages Annotations in a single file in Version 8.5?
Re: Annotations in All pages
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
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
-
- Posts: 14
- Joined: Fri Jan 20, 2012 8:18 am
Re: Annotations in All pages
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
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
Re: Annotations in All pages
Hi,
Kind regards,
Loïc
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.What is happening on being able to save the annotations for all pages?
Kind regards,
Loïc
Re: Annotations in All pages
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:
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>
- 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>
Who is online
Users browsing this forum: No registered users and 1 guest