Hi,
Someone could help me and if possible I create / put entry in GdViewer class without having to use the method that has the
interactivity of the mouse? just add properties that I set up Direct.
Kind Regards
Dim oGdPicturePDF As New GdPicturePDF
If oGdPicturePDF.LoadFromFile("c:\test.pdf", False) = GdPictureStatus.OK Then
Dim oAnnotationManager As AnnotationManager = New AnnotationManager
If oAnnotationManager.InitFromGdPicturePDF(oGdPicturePDF) = GdPictureStatus.OK Then
Dim annot As AnnotationStickyNote = oAnnotationManager.AddStickyNoteAnnot(0, 0, 3, 3, "To Be Investigated")
annot.CanSelect = False
annot.Author = "John"
oAnnotationManager.BurnAnnotationsToPage(True) 'Comment this line to keep annots as XMP format
oAnnotationManager.SaveDocumentToPDF("c:\testout.pdf")
oAnnotationManager.Close()
End If
oGdPicturePDF.CloseDocument()
End If Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("c:\001.tif")
If oGdPictureImaging.GetStat = GdPictureStatus.OK Then
Dim oAnnotationManager As AnnotationManager = New AnnotationManager
If oAnnotationManager.InitFromGdPictureImage(ImageID) = GdPictureStatus.OK Then
Dim annot As AnnotationStickyNote = oAnnotationManager.AddStickyNoteAnnot(0, 0, 3, 3, "To Be Investigated")
annot.CanSelect = False
annot.Author = "John"
oAnnotationManager.BurnAnnotationsToPage(True) 'Comment this line to keep annots as XMP format
oAnnotationManager.SaveDocumentToTIFF("c:\testout.tif", TiffCompression.TiffCompressionAUTO)
oAnnotationManager.Close()
End If
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End IfReturn to Example requests & Code samples For GdPicture.NET
Users browsing this forum: No registered users and 0 guests