Aspose.PDF Version 18.6.0.0
I am trying to update the creator info on a PDF, I can set the property to a different value but after saving the file and reading the file again, the creator information shows the the original value.
Old topics say it is not possible to do this (Author information can be updated but not Creator info), is it still the same case? and if so, why is the Creator property not read-only?
Here’s a sample of the code I am using in a console application.
PdfFileInfo pdfDoc = new PdfFileInfo(pdfFilePath);
Console.WriteLine("Creator info Before updated");
Console.WriteLine($"Creator:\t{pdfDoc.Creator}");
pdfDoc.Creator = pdfDoc.Creator + " Updated"; ;
Console.WriteLine("Creator info After updated");
Console.WriteLine($"Creator:\t{pdfDoc.Creator}"); ;
pdfDoc.Save(pdfFilePath);
// Open Saved File
PdfFileInfo pdfDoc2 = new PdfFileInfo(pdfFilePath);
Console.WriteLine("Creator info After Updated and Saved");
// Get PDF information, updated value is lost
Console.WriteLine($"Creator:\t{pdfDoc2.Creator}");