AttachmentsEmbeddingMode
Contenuti
[
Nascondere
]PdfSaveOptions.AttachmentsEmbeddingMode property
Ottiene o imposta un valore che determina come gli allegati vengono incorporati nel documento PDF.
public PdfAttachmentsEmbeddingMode AttachmentsEmbeddingMode { get; set; }
Osservazioni
Il valore predefinito èNone e gli allegati non sono incorporati.
Gli standard PDF/A-1, PDF/A-2 e PDF/A-4 standard (non PDF/A-4f) non consentono file incorporati. None il valore verrà utilizzato automaticamente.
Esempi
Mostra come aggiungere allegati incorporati al documento PDF.
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.PdfEmbedAttachments.pdf", saveOptions);
Guarda anche
- enum PdfAttachmentsEmbeddingMode
- class PdfSaveOptions
- spazio dei nomi Aspose.Words.Saving
- assemblea Aspose.Words