How to set properties like Author name,creation Date in WinForms PDF?
The DocumentInformation of the WinForms PDF class can be used to set the document information such as,
- 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 find the sample from the location specified below:
http://www.syncfusion.com/support/user/uploads/PDF_DocpropDemo_3f5134e.zip
Conclusion
I hope you enjoyed learning about how to set properties like the Author name and Creation Date in WinForms PDF.
You can refer to our WinForm PDF Feature Tour page to learn about its other groundbreaking feature representations. You can also explore our WinForms Gridgroupingcontrol documentation to understand how to manipulate data.
For current customers, you can check out on our WinForms components from the License and Download page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our Winforms GridGroupingControl and other WinForms components.
If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums or feedback portal. We are always happy to assist you!