We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding Metadata to PDFs Deletes Unflattened Fields?

I am using PDF.Kit to fill some form fields in an existing PDF document. This works fine. When complete I’d like to add a couple custom values to the document’s metadata ala:

Dim fileInfo As PdfFileInfo = New PdfFileInfo(destFilePath)
Dim metaInfo As System.Collections.Hashtable = New System.Collections.Hashtable()

metaInfo.Add(“Foo”, “Bar”)
fileInfo.Header = metaInfo

There are a couple fields in the PDF form that are not flattened (and I’d like them to remain that way) but those fields are deleted after I modify the metadata!

Is there any way around this besides bloating my application by using the Acrobat API just to mess with metadata??


Hello Ken,

I have tested the scenario using one of my sample Pdf document and I am unable to reproduce the problem. Please share the Pdf file that you are using, so that we can test the issue at our end. We apologize for your inconvenience.