How to set properties like Author Name, Creation date etc to PDF document?
The DocumentInformation class can be used to set the document informations like,
- Title
- Author
- Keywords
- Subject
- Producer
- CreationDate
C#
//Setting various Document properties.
doc.DocumentInformation.Title = "Document Properties";
doc.DocumentInformation.Author = "Syncfusion";
doc.DocumentInformation.Keywords = "PDF";
doc.DocumentInformation.Subject = "PDF demo.";
doc.DocumentInformation.Producer = "Syncfusion Software"; doc.DocumentInformation.CreationDate = DateTime.Now;
VB
''Setting various Document properties.
doc.DocumentInformation.Title = "Document Properties"
doc.DocumentInformation.Author = "Syncfusion"
doc.DocumentInformation.Keywords = "PDF"
doc.DocumentInformation.Subject = "PDF demo."
doc.DocumentInformation.Producer = "Syncfusion Software"
doc.DocumentInformation.CreationDate = DateTime.Now
Please do find the sample from the below specified location,
http://www.syncfusion.com/support/user/uploads/PDF_DocpropDemo_3f5134e.zip