I have the attached PDF and no matter what I do the properties displayed in Acrobat Reader are not being updated.
I am trying to update the ModDate and the CreatedDate. If I read the PDF in ASPOST.PDF the fields have changed but when opened in Acrobat the fields show the old values.
What is going on here? Other PDF files do not suffer from this problem.
a test PDF.pdf (45.4 KB)
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("Aspose.Total.lic");
try
{
Aspose.Pdf.Document frm = new Aspose.Pdf.Document(openFileDialog1.FileName);
frm.Info.Clear();
frm.Info.Title = string.Empty;
frm.Info.ModDate = DateTime.Today.AddDays(-1);
frm.Info.CreationDate = DateTime.Today.AddDays(-1);
frm.Save(openFileDialog1.FileName);
}
catch (Exception ex)
{ }