How to update Comments-category and date modified

Hi Guys,

I'm using Aspose.pdf.kit 3.7, I need to update the pdf file properties comments,category and date modified, the below code run thru without any exceptions, but fields were not updated.

PdfFileInfo fileInfo = new PdfFileInfo(LocalFileName);
fileInfo.SetMetaInfo("comments", "This is test comment");
fileInfo.SaveNewInfo(NewFileName);

Thanks,

Arun.

Hi Arun,

If you’re trying to add new custom property, you can use PdfXmpMetadata class. You can also find the details in this article:

Aspose.Total for .NET|Documentation

However, if you’re trying to update an existing custom property and it is not working at your end the please share the sample PDF file. We’ll need to test the issue at your end. You’ll be updated accordingly.

We’re sorry for the inconvenience.
Regards,