I have a PDF and i want to import annotations from a XFDF file,
the code i am using with Aspose.PDF 25.2.0
Document pdfDocument = new Document(inputPdf);
// Create a PdfAnnotationEditor object
PdfAnnotationEditor annotationEditor = new PdfAnnotationEditor();
// Bind the input PDF
annotationEditor.BindPdf(pdfDocument);
using StreamReader reader2 = new("FIVR_133_PrintToPDF2.XFDF");
// Read the stream as a string.
string text2 = reader2.ReadToEnd();
using(MemoryStream ms1= new MemoryStream(Encoding.UTF8.GetBytes(text2))){
// Import XFDF annotations
annotationEditor.ImportAnnotationsFromXfdf(ms1);
}
annotationEditor.Save(outputPdf);
the generated PDF when i open in Edge or Chrome, the polygon annoations are not displayed FIVR_133_PrintToPDF.zip (83.7 KB)
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-59705
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Thanks for the feedback. We have recorded this information along with the ticket and as soon as we have some definite updates regarding ticket resolution, we will let you know. Please be patient and spare us some time.
We are sorry for the inconvenience.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.