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.

Thu Apr 14, 2022 2:11 pm

Hi,

I'm using spire pdf to change the author of the annotations. I have 2 issues :
1 : It's working with PdfLineAnnotation, PdfTextAnnotationWidget, PdfSquareAnnotationWidget, PdfRubberStampAnnotationWidget, PdfPolyLineAnnotationWidget, PdfInkAnnotationWidget... but it seems like PdfLineAnnotation don't have Author attribute. So how could I change the author ?
2 : Is there a specifique class for "arrow" annontations ? I can't find it.

Thanks and best regards,

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

Fri Apr 15, 2022 3:53 am

Hello,

Thanks for your inquiry.
1. Currently our Spire.PDF does not support modifying the author of "PdfLineAnnotation", I have logged the issue into our bug tracking system with the ticket number SPIREPDF-5095. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.
2. We don't have a dedicated class for arrow annotations. I added the line annotation and the arrow annotation through Adobe and found that they are just different subjects. I have submitted the feature to add the line annotation subject to our development team. Once it is achieved in the future, I will inform you.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1650
Joined: Wed Apr 07, 2021 2:50 am

Fri Apr 15, 2022 6:28 am

Thanks for your reply.

Will I be notified is the ticket SPIREPDF-5095 is solved ?

Regards,

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

Fri Apr 15, 2022 7:35 am

Hello,

Yes, once the issue SPIREPDF-5095 is resolved, I will inform you immediately.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1650
Joined: Wed Apr 07, 2021 2:50 am

Wed Jun 08, 2022 9:44 am

Hello,

Thanks for your patience.
Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:8.6.1, which implements setting the author and subject of "PdfLineAnnotation". Please download the new version from the following links for testing.

Website link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
NuGet link: https://www.nuget.org/packages/Spire.PDF/8.6.1

Code: Select all
PdfDocument pdf = new PdfDocument(inputFile);
PdfAnnotation annotation = pdf.Pages[0].AnnotationsWidget[0];
            if (annotation is PdfLineAnnotationWidget)
            {
                PdfLineAnnotationWidget lineAnn = annotation as PdfLineAnnotationWidget;
                lineAnn.Author = "Author_test";
                lineAnn.Subject = "Subject_test";
            }
pdf.SaveToFile(outputFile);

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1650
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF