Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Mar 10, 2025 12:58 pm

Hello,
I use Spire PDF for moving annotation from a PDF to another in C#.
It works for almost all anotations but I think it doesn't work for "circle annotation" (or oval)

I use this kind of code :
Code: Select all
for (int a = 0; a < inputSpire.Pages[0].AnnotationsWidget.Count; a++)
{
    if (inputSpire.Pages[0].AnnotationsWidget[a] is Spire.Pdf.Annotations.pdf)
    {
        PdfTextMarkupAnnotationWidget tma = inputSpire.Pages[0].AnnotationsWidget[a] as PdfTextMarkupAnnotationWidget
    }
}


This is the code of the annotation from a a fdf file
/NM (65c01eed-9949-4f77-b0adb36c36b2146b)
/RD [0.5 0.5 0.5 0.5]
/Page 0
/Rect [183.023367 532.856964 318.040605 643.868832]
/Subj (Oval - annotation)
/Subtype /Circle

In attachement a photo of the annotation.

Thanks for your help,

camille_59
 
Posts: 12
Joined: Mon Feb 01, 2021 4:21 pm

Tue Mar 11, 2025 1:59 am

Hello,

Thanks for your inquiry.
To help us investigate your issue further, could you please provide us with your test file? You can upload it to the attachment or send it to this email: [email protected]. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 757
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDF