I use freeSpire in C# to move annotations in a pdf. It's work well for all annotations except "pencil annotations". For exemple, the next code won't delete pencil annotations :
- Code: Select all
using Spire.Pdf;
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputPathFile);
pdf.Pages[0].AnnotationsWidget.Clear();
it's look like these kind of annotationd were "drawing" but I'm not able to retrieve drawing for moving or deleting.
For information, this is the fdf doc (shorted) with the annotation :
%FDF-1.2
%âãÏÓ
1 0 obj
<</FDF<</Annots[2 0 R 3 0 R]/F(/C/Users/..._AnnotDecale.pdf)/ID[<FA...8FA8D><1F0...A439>]/UF(/C/Use...d_AnnotDecale.pdf)>>/Type/Catalog>>
endobj
2 0 obj
<</C[0.898041 0.133331 0.215683]/CreationDate(D:20210201132428+01'00')/F 4/InkList[[359.98...137][433...51]]/M(D:20210201132431+01'00')/NM(cb047a0c-aa72-48ff-8f3c-e69dfd4ec7cc)/Page 0/Popup 3 0 R/Rect[345.885 570.51 469.89 789.683]/Subj(Crayon )/Subtype/Ink/T(XXX)/Type/Annot>>
endobj
3 0 obj
<</F 28/Open false/Page 0/Parent 2 0 R/Rect[595.32 674.683 799.32 788.683]/Subtype/Popup/Type/Annot>>
endobj
trailer
<</Root 1 0 R>>
%%EOF
My program is a c# console application .NET framework 4.7.2 and I use FreeSpire 6.10.6.
Thanks for your help,