Preserve extended features when creating PDF

The extended features seems to be stripped when making a copy of a PDF file. Is there a way to preserve this?

Hi there,


Thanks for your inquiry. As per PDF specification, extended features would be lost upon copying the PDF document. However, you may preserve the extended feature while working with forms. Please check following documentation link for the purpose.


Please feel free to contact us for any further assistance.

Best Regards,

I am importing and populating it with XML data using the following code.
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form(sourcePdf.FullName);
FileStream xmlInputStream = new FileStream(xml.FullName, FileMode.Open);
form.ImportXml(xmlInputStream);
xmlInputStream.Close();
form.Save(resultPdf.FullName);
return true;

Can I still preserve the extended features?

Hi,


Can you please share the resource PDF and XML file so that we can test the scenario at our end.

Here are the PDF and XML files I use.

Hi there,


Thanks for sharing your source documents. I am afraid currently Facade package does not preserving extended feature rights. We have logged an enhancement ticket PDFNEWNET-37249 in our issue tracking system for the purpose. We will keep you updated about the issue resolution progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,