PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
The steps to access a list of annotations and annotation objects are as follows:
This example shows how to access annotations:
CPDFDocument document = CPDFDocument.InitWithFilePath("filePath");
int pageCount = document.PageCount;
if(pageCount>0)
{
for(int pageIndex = 0;pageIndex < pageCount;pageIndex++)
{
// Obtain the page object and Access the list of annotations within the page object.
List<CPDFAnnotation>annotations = document.PageAtIndex(pageIndex).GetAnnotations();
if(annotations != null && annotations.Count != 0)
{
// Iterate through each annotation object in the list.
foreach(CPDFAnnotation annotation in annotations)
{
// Perform relevant operations on the obtained annotation objects.
}
}
}
}