AttachmentsEmbeddingMode
Contents
[
Hide
]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 add embed attachments to the PDF document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertOleObject(MyDir + "Spreadsheet.xlsx", "Excel.Sheet", false, true, null);
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.AttachmentsEmbeddingMode = PdfAttachmentsEmbeddingMode.Annotations;
doc.Save(ArtifactsDir + "PdfSaveOptions.AttachmentsEmbeddingMode.pdf", saveOptions);
See Also
- enum PdfAttachmentsEmbeddingMode
- class PdfSaveOptions
- namespace Aspose.Words.Saving
- assembly Aspose.Words