Image over gdpicture

Discussions about annotation support.
Post Reply
rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Image over gdpicture

Post by rpicilli » Sun Jan 01, 2012 5:32 pm

Dears,

Supose that I have a document loaded into a gdviwer (PDF or TIFF). How can I add a image or a sticknote on that document by code?

I have try to find a method or function but no success on my rechearch. I know how to put a image embeded or a sticknote using the assisted methods but I need to do that by code. Is there a way to accomplish that?

Regards

Rogerio

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Image over gdpicture

Post by Loïc » Tue Jan 03, 2012 3:49 pm

Ho Rogiero,

You have to use the AnnotationManager class which have been introduced in our latest versions.

Let me know if you need other information.

Kind regards,

Loïc

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Image over gdpicture

Post by rpicilli » Wed Jan 04, 2012 2:38 am

Hi Loïc,

Could you tell me how can I find into gdpicture manual how to use the methods? I could find all the description but not a kind of how to use those methods. I want to buy your sdk but I don't to want to keep asking you how to do things. Don't get me wrong. I don't feel good every single doubt that I have be asking for support. By the way your company support is great but I'd rather discover by myself.

Up to now I was not able to understand the manual. Maybe its my fault, for sure but I need to realize how to "walk" alone with the manual before buy the product.

Thank for your help

Rogerio Picilli

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Image over gdpicture

Post by Loïc » Wed Jan 04, 2012 3:37 pm

Hi,

Here a snippet:

Code: Select all

        Dim oAnnotationMgr As New AnnotationManager
        Dim oGdPicturePDF As New GdPicturePDF

        If oGdPicturePDF.LoadFromFile("c:\input.pdf", False) = GdPictureStatus.OK Then
            oAnnotationMgr.InitFromGdPicturePDF(oGdPicturePDF)
            oAnnotationMgr.SelectPage(1)
            oAnnotationMgr.AddStickyNoteAnnot(0, 0, 2, 2, "content")
            oAnnotationMgr.SaveDocumentToPDF("c:\output.pdf")
            oGdPicturePDF.CloseDocument()
        End If
You can find the reference guide from here: https://www.gdpicture.com/guides/gdpicture
You can download the latest SDK version here: https://www.gdpicture.com/download/downl ... urenet.php

Let me know if you need more details.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest