Hi Bevan,
Currently, we do not
have the support to view annotations in the WinForms PDFViewer. However, your
requirement is to only view the annotations, we can achieve this by loading the
PDF with annotations after flattening the annotations present in the document. The Flatten property will remove the existing annotation and
replace it with graphical objects that would resemble the annotation and cannot
be edited. So, when we set the Flatten as true the annotations are updated and the value is
displayed. Please refer the below code
snippet for flattening the annotations,
|
//Create the new instance
of the loadedDocument object
PdfLoadedDocument
pdfLoadedDocument = new PdfLoadedDocument(“Succinctly.pdf");
for (int i = 0; i <
pdfLoadedDocument.Pages.Count; i++)
{
for (int
j = 0; j < pdfLoadedDocument.Pages[i].Annotations.Count; j++)
{
//Flatten
the annotations present in the document
pdfLoadedDocument.Pages[i].Annotations[j].Flatten
= true;
if
(pdfLoadedDocument.Pages[i].Annotations[j] is PdfLoadedPopupAnnotation)
pdfLoadedDocument.Pages[i].Annotations[j].FlattenPopUps
= true;
}
}
//Load the flatten
document in PdfViewer
pdfViewerControl.Load(pdfLoadedDocument);
|
Please refer to the link below to know more about flattening
the form fields,
https://help.syncfusion.com/file-formats/pdf/working-with-forms#removing-editing-capability-of-form-fields
Please let us know if the above details are helpful to achieve
your requirement or if you need any further assistance with this.
Regards,
Raja
Vignesh.