Annotations (FreeText) applied to file programmatically are not appearing (C#)

Product: PDFNet

Product Version: 9.2.7.9274

Please give a brief summary of your issue:
Annotations applied from XFDF file using PDFNet library is not appearing on the converted file. FreeText is missing

Please describe your issue and provide steps to reproduce it:

  1. I am using below code to apply annotations.

private static void BurnAnnotaions()
{
try
{
FDFDoc fdf_doc1 = new FDFDoc(FDFDoc.CreateFromXFDF(input_path + “Sample.xfdf”));
fdf_doc1.Save(output_path + “V3S Aggremen.fdf”);
using (PDFDoc doc = new PDFDoc(input_path + “V3S Aggrement.pdf”))
{
doc.InitSecurityHandler();
doc.FDFUpdate(fdf_doc1);
doc.RefreshAnnotAppearances();
doc.Save(output_path + “V3S Aggrement Annoted.pdf”, SDFDoc.SaveOptions.e_linearized);
}
}
catch (PDFNetException e)
{
Console.WriteLine(e.Message);
}
}

  1. Converted file does not show free text.

  1. When you click on the free text area it shows like below.

  1. XFDF Content:
<?xml version="1.0" encoding="UTF-8" ?>







Confidential



Confidential




0 0 0 rg /Helvetica 40 Tf
font: Helvetica 40pt; text-align: left; text-vertical-align: top; color: #E44234




Not Required



Not Required




0 0 0 rg /Helvetica 40 Tf
font: Helvetica 40pt; text-align: left; text-vertical-align: top; color: #E44234




Sample Text



Sample Text




0 0 0 rg /Helvetica 40 Tf
font: Helvetica 40pt; text-align: left; text-vertical-align: top; color: #E44234





Please provide a link to a minimal sample where the issue is reproducible:

Hello, the annotation xfdf you provided is incomplete. Could you please provide us with the xfdf (or fdf) file so that we can take a look at this issue on our end.

Thank you.

Hi @shakthi124 ,

Thank you for the reply. Please find the files from below location.

Repo Path : pdftronPOC/src/files at main · narinaresh2022/pdftronPOC · GitHub
XFDF File Name : Sample.xfdf
Converted File Name: V3S Aggrement Annoted.pdf