'We assume that the GdViewer1 control has been properly integrated.
If GdViewer1.DisplayFromFile("") = GdPictureStatus.OK Then
'Annotate your document.
'Burning annotations to page using rasterization.
If GdViewer1.BurnAnnotationsToPage(True, False) = GdPictureStatus.OK Then
If GdViewer1.SaveDocumentToPDF("mydocument.pdf") = GdPictureStatus.OK Then
MessageBox.Show("Done!", "GdViewer.BurnAnnotationsToPage")
Else
MessageBox.Show("The file can't be saved. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage")
End If
Else
MessageBox.Show("Annotations can't be burned. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage")
End If
Else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage")
End If
//We assume that the GdViewer1 control has been properly integrated.
if (GdViewer1.DisplayFromFile("") == GdPictureStatus.OK)
{
//Annotate your document.
//Burning annotations to page using rasterization.
if (GdViewer1.BurnAnnotationsToPage(true, false) == GdPictureStatus.OK)
{
if (GdViewer1.SaveDocumentToPDF("mydocument.pdf") == GdPictureStatus.OK)
MessageBox.Show("Done!", "GdViewer.BurnAnnotationsToPage");
else
MessageBox.Show("The file can't be saved. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage");
}
else
MessageBox.Show("Annotations can't be burned. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage");
}
else
MessageBox.Show("The file can't be loaded. Status: " + GdViewer1.GetStat().ToString(), "GdViewer.BurnAnnotationsToPage");