We use Flatten() function to burn annotations into pdf file, it doesn't happen as expect. No result comes out.
example is below, version is 8.4.1
string pdfPath = "trr.pdf";
Document doc = new Document(pdfPath);
for (int i = 1; i <= doc.Pages.Count && i < 5; i++)
{
Aspose.Pdf.Page page = doc.Pages[i];
List<Annotation> annotations = new List<Annotation>();
for (int j = 1; j <= page.Annotations.Count && j < 5; j++)
annotations.Add(page.Annotations[j]);
foreach (Annotation annot in annotations)
{
annot.Flatten();
}
}
doc.Save("flatten.pdf");