Hi,
I use Spire pdf to copy annotations from one pdf to another one.
It's work well (thanks !) but I noticed an issue with "ellipse" annotation.
This is the code :
[code] public static void copyAnnotation(string input, string output)
{
Spire.Pdf.PdfDocument inputSpire = new Spire.Pdf.PdfDocument(input);
Spire.Pdf.PdfDocument OutputSpire = new Spire.Pdf.PdfDocument(output);
for (int a = 0; a < inputSpire.Pages[0].AnnotationsWidget.Count; a++)
{
Spire.Pdf.Annotations.PdfAnnotation annotation = inputSpire.Pages[0].AnnotationsWidget[a];
OutputSpire.Pages[0].AnnotationsWidget.Add(annotation);
}
OutputSpire.SaveToFile(output);
Input and Output file are joined.
As you can see the three Ellipse annotation are existing in the output file but they are not visible.
I try with several pdf viewer.
I hope you could help me.
Best regards,