Hi Team,
We are using Aspose.PDF(23.1.0 version) with .Net 8.0 for clear document properties metadata like Author, Title, Subject and Keyword but its not updating.
We have implemented below code and attached sample PDF file
031-201-00279-With Author.pdf (140.9 KB)
for reference.
doc.Info.Author = string.Empty;
doc.Info.Title = string.Empty;
doc.Info.Subject = string.Empty;
doc.Info.Keywords = string.Empty;
//dc:creator
if (doc.Metadata.ContainsKey(“dc:creator”))
{
doc.Metadata[“dc:creator”] = string.Empty;
}
if (doc.Metadata.ContainsKey(“dc:subject”))
{
doc.Metadata[“dc:subject”] = string.Empty;
}
if (doc.Metadata.ContainsKey(“pdf:Keywords”))
{
doc.Metadata[“pdf:Keywords”] = string.Empty;
}