Skip to main content

PdfDocumentOptions.Producer Property

Gets or sets the string to be added as a Producer property of the resulting PDF file.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[Browsable(false)]
public string Producer { get; set; }

Property Value

Type Description
String

A String which stores a Producer name.

Property Paths

You can access this nested property as listed below:

Object Type Path to Producer
PdfExportOptions
.DocumentOptions .Producer

Remarks

Use the Producer property along with the other properties of the PdfDocumentOptions class to specify Document Properties of the resulting PDF file.

When the Producer property is not specified, the PdfDocumentOptions.DefaultProducer property value is used to specify the Producer of a PDF file.

Example

This example illustrates how to use the PdfDocumentOptions.Producer and PdfDocumentOptions.DefaultProducer properties.

using DevExpress.XtraPrinting;
// ...

private static void ExportProducerLocal(XtraReport1 report) {
    report.ExportOptions.Pdf.DocumentOptions.Producer = "Some Producer";
    report.ExportToPdf("testProducer.pdf");

    System.Diagnostics.Process.Start("testProducer.pdf");
}

private static void ExportProducerGlobal(XtraReport1 report) {
    PdfDocumentOptions.DefaultProducer = "Some Default Producer";
    report.ExportToPdf("testGlobalProducer.pdf");

    System.Diagnostics.Process.Start("testGlobalProducer.pdf");
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Producer 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.

See Also