Articles in this section
Category / Section

How to set properties like Author Name, Creation date etc to PDF document?

1 min read

 

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied