PdfAttachmentsEmbeddingMode Enum

Wordize.Saving.PdfAttachmentsEmbeddingMode enum. Specifies how attachments are embedded to PDF document.

PdfAttachmentsEmbeddingMode enumeration

Specifies how attachments are embedded to PDF document.

public enum PdfAttachmentsEmbeddingMode

Values

NameValueDescription
None0Attachments are not embedded.
Annotations1Attachments are embedded as annotations with location on page.
DocumentEmbeddedFiles2Attachments are embedded as the document embedded files without annotations.

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