Back to Devexpress

PdfDocumentOptions.Author Property

corelibraries-devexpress-dot-xtraprinting-dot-pdfdocumentoptions-c4133fb3.md

latest6.5 KB
Original Source

PdfDocumentOptions.Author Property

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

Declaration

csharp
[DefaultValue("")]
public string Author { get; set; }
vb
<DefaultValue("")>
Public Property Author As String

Property Value

TypeDefaultDescription
StringString.Empty

A String which stores an Author name.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Author
PdfExportOptions

.DocumentOptions .Author

|

Remarks

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

csharp
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

csharp
PdfExportOptions options = new PdfExportOptions();
options.DocumentOptions.Author = "Mark Jones";
options.Compressed = false;

reporting-winforms-export-options-actions/CS/ExportOptionSample/Form1.cs#L96

csharp
// 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

csharp
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

csharp
compositeLink.CreateDocument();
compositeLink.PrintingSystem.ExportOptions.Pdf.DocumentOptions.Author = "Test";

winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L395

vb
Dim options As New DevExpress.XtraPrinting.PdfExportOptions()
options.DocumentOptions.Author = "Mark Jones"
options.Compressed = False

word-document-api-examples/VB/CodeExamples/ExportActions.vb#L71

vb
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

vb
' 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

vb
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

vb
compositeLink.CreateDocument()
compositeLink.PrintingSystem.ExportOptions.Pdf.DocumentOptions.Author = "Test"
Using stream As MemoryStream = New MemoryStream()

See Also

PdfDocumentOptions Class

PdfDocumentOptions Members

DevExpress.XtraPrinting Namespace