I have added the GDProViewer to my .NET project and am able to view my PDFs and add annotations, edit annotations, save the annotations to XMP (actually I save the data to a stream and this is stored in a database field), I can load the annotations back and everyting is fine up until this point.
I have the requirement to export images from the system. If the image has annotations (unburned - retrieved from the database) then I need to ensure that the exported PDF contains the annotations / redactions burned into the PDF. Currently this is not happening for me.
The code I have is this
Code: Select all
If Me._viewer.GDProControl.GDProViewerControl.GetAnnotationCount() > 0 Then
'Burn into temp file
Me._viewer.GDProControl.GDProViewerControl.BurnAnnotationsToPage(True)
Me._viewer.GDProControl.GDProViewerControl.SaveDocumentToPDF(dialog.FileName)
End If
If I open the resulting exported PDF there are no annotations burned into the file. I guess I am doing this completely wrong. Can anyone point me in the correct direction please?
Forgot to mention the version (according to Control Panel Add Remove is 8.2)
Regards