PdfSaveOptions.AttachmentsEmbeddingMode

PdfSaveOptions AttachmentsEmbeddingMode property. Gets or sets a value determining how attachments are embedded to the PDF document.

PdfSaveOptions.AttachmentsEmbeddingMode property

Gets or sets a value determining how attachments are embedded to the PDF document.

public PdfAttachmentsEmbeddingMode AttachmentsEmbeddingMode { get; set; }

Remarks

Default value is None and attachments are not embedded.

PDF/A-1, PDF/A-2 and regular PDF/A-4 (not PDF/A-4f) standards do not allow embedded files. None value will be used automatically.

Examples

Shows how to preserve attachments as embedded files in PDF.

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.AttachmentsEmbeddingMode = PdfAttachmentsEmbeddingMode.DocumentEmbeddedFiles;

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

See Also