[]
Represents the document properties of a PDF document.
Use this class to define PDF metadata such as the title, author, subject, keywords, creator, producer, creation date, modification date, and the PDF version to use when generating the document. Assign an instance to DocumentProperties to apply these properties during PDF export.
public class DocumentProperties
Public Class DocumentProperties
Workbook workbook = new Workbook();
IWorksheet worksheet = workbook.Worksheets[0];
worksheet.Range["A1"].Value = "Quarterly Sales Summary";
DocumentProperties documentProperties = new DocumentProperties();
documentProperties.Title = "Quarterly Sales Summary";
documentProperties.Author = "Author";
documentProperties.PdfVersion = 1.5f;
PdfSaveOptions options = new PdfSaveOptions();
options.DocumentProperties = documentProperties;
string fileName = "DocumentProperties.pdf";
workbook.Save(fileName, options);
| Name | Description |
|---|---|
| DocumentProperties() |
| Name | Description |
|---|---|
| Author | Gets or sets the name of the person that created the document. |
| CreationDate | Gets or sets the creation date and time of the document. |
| Creator | Gets or sets the name of the application that created the original document. |
| EmbedStandardWindowsFonts | Gets or sets whether standard Windows fonts are embedded in the generated document. |
| Keywords | Gets or sets the keywords associated with the document. |
| ModifyDate | Gets or sets the date and time when the document was most recently modified. |
| PdfVersion | Gets or sets the PDF version of the generated document. |
| Producer | Gets or sets the name of the application or library that produced the PDF document. |
| Subject | Gets or sets the subject of the document. |
| Title | Gets or sets the title of the document. |