PdfSaveOptions.CustomPropertiesExport

PdfSaveOptions CustomPropertiesExport property. Gets or sets a value determining the way custom document properties are exported to PDF file.

PdfSaveOptions.CustomPropertiesExport property

Gets or sets a value determining the way custom document properties are exported to PDF file.

public PdfCustomPropertiesExport CustomPropertiesExport { get; set; }

Remarks

Default value is None.

Metadata value is not supported when saving to PDF/A. Standard will be used instead for PDF/A-1 and PDF/A-2 and None for PDF/A-4.

Standard value is not supported when saving to PDF 2.0. Metadata will be used instead.

Examples

Shows how to configure exporting custom document properties.

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.CustomPropertiesExport = PdfCustomPropertiesExport.Standard;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "PdfSaveOptions.CustomPropertiesExport.pdf", pdfSaveOptions)
    .Execute();

See Also