corelibraries-devexpress-dot-xtraprinting-dot-pdfdocumentoptions-c4133fb3.md
Gets or sets the string to be added as an Author property of the resulting PDF file.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue("")]
public string Author { get; set; }
<DefaultValue("")>
Public Property Author As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String which stores an Author name.
|
You can access this nested property as listed below:
| Object Type | Path to Author |
|---|---|
| PdfExportOptions |
.DocumentOptions .Author
|
Use the Author property along with the other properties of the PdfDocumentOptions class to specify Document Properties of the resulting PDF file.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Author property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L388
DevExpress.XtraPrinting.PdfExportOptions options = new DevExpress.XtraPrinting.PdfExportOptions();
options.DocumentOptions.Author = "Mark Jones";
options.Compressed = false;
word-document-api-examples/CS/CodeExamples/ExportActions.cs#L77
PdfExportOptions options = new PdfExportOptions();
options.DocumentOptions.Author = "Mark Jones";
options.Compressed = false;
reporting-winforms-export-options-actions/CS/ExportOptionSample/Form1.cs#L96
// You can configure your export options.
pdfExportOptions.DocumentOptions.Author = "VisualExportTool";
VisualExportTool.ExportFile(pdfExportOptions, printControl.PrintingSystem);
asp-net-web-forms-export-pivot-grid-and-chart-in-one-document/CS/Default.aspx.cs#L15
PrintingSystemBase ps = new PrintingSystemBase();
ps.ExportOptions.Pdf.DocumentOptions.Author = "Test";
web-forms-pivot-grid-export-additional-captions-header-or-footer/CS/Default.aspx.cs#L30
compositeLink.CreateDocument();
compositeLink.PrintingSystem.ExportOptions.Pdf.DocumentOptions.Author = "Test";
winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L395
Dim options As New DevExpress.XtraPrinting.PdfExportOptions()
options.DocumentOptions.Author = "Mark Jones"
options.Compressed = False
word-document-api-examples/VB/CodeExamples/ExportActions.vb#L71
Dim options As DevExpress.XtraPrinting.PdfExportOptions = New DevExpress.XtraPrinting.PdfExportOptions()
options.DocumentOptions.Author = "Mark Jones"
options.Compressed = False
reporting-winforms-export-options-actions/VB/ExportOptionSample/Form1.vb#L98
' You can configure your export options.
pdfExportOptions.DocumentOptions.Author = "VisualExportTool"
VisualExportTool.ExportFile(pdfExportOptions, printControl.PrintingSystem)
asp-net-web-forms-export-pivot-grid-and-chart-in-one-document/VB/Default.aspx.vb#L17
Dim ps As PrintingSystemBase = New PrintingSystemBase()
ps.ExportOptions.Pdf.DocumentOptions.Author = "Test"
Dim link1 As PrintableComponentLinkBase = New PrintableComponentLinkBase(ps)
web-forms-pivot-grid-export-additional-captions-header-or-footer/VB/Default.aspx.vb#L27
compositeLink.CreateDocument()
compositeLink.PrintingSystem.ExportOptions.Pdf.DocumentOptions.Author = "Test"
Using stream As MemoryStream = New MemoryStream()
See Also