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
Name | Value | Description |
---|---|---|
None | 0 | Attachments are not embedded. |
Annotations | 1 | Attachments are embedded as annotations with location on page. |
DocumentEmbeddedFiles | 2 | Attachments 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
- namespace Wordize.Saving
- assembly Wordize