Rubber Stamps Annotation not saving consistently
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Rubber Stamps Annotation not saving consistently
Hi,
Every time I apply rubber stamps annotation on my pdf page and saved the document, and then re-open it afterwards, sometimes the stamps are save(retained) on the page and sometimes it doesn't.. What seems to be the problem?
My Code:
myViewer.AddRubberStampAnnotInteractive("APPROVED" + Environment.NewLine, Color.Red, "Verdana", System.Drawing.FontStyle.Bold, Color.Red, 0.08f, 0.8f, 0);
Every time I apply rubber stamps annotation on my pdf page and saved the document, and then re-open it afterwards, sometimes the stamps are save(retained) on the page and sometimes it doesn't.. What seems to be the problem?
My Code:
myViewer.AddRubberStampAnnotInteractive("APPROVED" + Environment.NewLine, Color.Red, "Verdana", System.Drawing.FontStyle.Bold, Color.Red, 0.08f, 0.8f, 0);
Re: Rubber Stamps Annotation not saving consistently
Annotations need to be saved to the page once added, otherwise they simply disappear. My guess is that you are not saving them properly to the page.
This is done by calling the SaveAnnotationsToPage method (which, according the documentation, is automatically called internally on page change).
This is done by calling the SaveAnnotationsToPage method (which, according the documentation, is automatically called internally on page change).
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Re: Rubber Stamps Annotation not saving consistently
Hi Cedric,
That's what I'm currently doing but again, it's not saving. Here's my code:
GdViewer.AddRubberStampAnnotInteractive("Approved" + Environment.NewLine, Color.Red, "Verdana", System.Drawing.FontStyle.Bold, Color.Red, 0.08f, 0.8f, 0);
GdViewer.SaveAnnotationsToPage();
also on the PageChanged event;
GdViewer.SaveAnnotationsToPage();
That's what I'm currently doing but again, it's not saving. Here's my code:
GdViewer.AddRubberStampAnnotInteractive("Approved" + Environment.NewLine, Color.Red, "Verdana", System.Drawing.FontStyle.Bold, Color.Red, 0.08f, 0.8f, 0);
GdViewer.SaveAnnotationsToPage();
also on the PageChanged event;
GdViewer.SaveAnnotationsToPage();
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Re: Rubber Stamps Annotation not saving consistently
SaveAnnotationsToPage() method is never used in your Demo Application (Annotations)
-
- Posts: 38
- Joined: Thu Sep 22, 2016 4:56 am
Re: Rubber Stamps Annotation not saving consistently
Never mind this one Cedric, I found a solution already. Thanks.
Who is online
Users browsing this forum: No registered users and 2 guests