StickyNote not visible in Adobe Reader

Discussions about annotation support.
Post Reply
gspiljar
Posts: 7
Joined: Mon Apr 28, 2014 9:51 am

StickyNote not visible in Adobe Reader

Post by gspiljar » Mon Apr 28, 2014 12:39 pm

I'm using this code to add stickynote to some pdf document.
GdViewer displays the note fine but Adobe Reader does not, whan am I doing wrong?

Code: Select all

  GdPicture10.AnnotationManager annotationManager = new AnnotationManager();
            GdPicturePDF pdf = new GdPicturePDF();
            pdf.LoadFromFile(path, true);
            annotationManager.InitFromGdPicturePDF(pdf);
            GdPicture10.Annotations.AnnotationStickyNote annotation = annotationManager.AddStickyNoteAnnot(1, 1, 3, 4, "Hello world!");
            annotation.FontSize = 20;
            annotation.Opacity = 1;
            annotationManager.SaveAnnotationsToPage();
            pdf.SaveToFile(path);
            m_GdViewer.DisplayFromGdPicturePDF(pdf);
            pdf.CloseDocument();
            annotationManager.Close();

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: StickyNote not visible in Adobe Reader

Post by Cedric » Mon Apr 28, 2014 2:08 pm

As this is a proprietary format based on the XMP standard, GdPicture/XMP annotations are only supported in our own viewer.
However, if you need them to be shown on other viewer software, you can "burn" the annotations on the PDF document so they become regular PDF objects.
This feature is also available in our demo application and use the BurnAnnotationsToPage method : https://www.gdpicture.com/guides/gdpicture/web ... oPage.html

Cedric

gspiljar
Posts: 7
Joined: Mon Apr 28, 2014 9:51 am

Re: StickyNote not visible in Adobe Reader

Post by gspiljar » Mon Apr 28, 2014 2:29 pm

Hi,
burn is not an option because I want to edit them in adobe or some other tool later.
Is it posible to manipulate with annotations that are created directly on GdPicturePDF object in the manner they can be manipulated when created by calling AddStickyNoteAnnotationInteractive on GdViewer?

My problem is that when I create annotation like this:

Code: Select all

GdPicturePDF pdf = new GdPicturePDF();
pdf.LoadFromFile(path, false);
pdf.AddStickyNoteAnnotation(PdfStickyNoteAnnotationIcon.PdfAnnotationIconNote, 3, 3, "Author", "Important note", "This is a StickyNote annotation", 1, false, 255, 255, 0, 5, 5, 6, 6);
Later when I preview that document with GdViewer annotations are "burned" , only non interactive icon is shown.
It's simple to edit it with some kind of custom form, but how to select it?

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: StickyNote not visible in Adobe Reader

Post by Cedric » Mon Apr 28, 2014 2:35 pm

Unfortunately there is no interaction possible with PDF scheme annotation in the GdViewer at the moment, they are only reachable through source code, this feature is on our to-do list though.

gspiljar
Posts: 7
Joined: Mon Apr 28, 2014 9:51 am

Re: StickyNote not visible in Adobe Reader

Post by gspiljar » Mon Apr 28, 2014 2:53 pm

Thank you Cedric, I'll try to implement gdpicture to fit my needs.
Regards!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest