Incorpora allegato in PDF

Contents
[ ]

In Excel, puoi inserire un Oggetto Ole con dati sorgente (embedded-attachments-example.xlsx) . Fai doppio clic sull’Ole Object, il file incorporato verrà aperto.

In generale, durante la conversione in pdf, l’Ole Object sarà renderizzato come un’icona o una miniatura senza i dati sorgente dell’Ole Object. Con l’opzione PdfSaveOptions.EmbedAttachments, puoi incorporare i dati sorgente dell’Ole Object come allegato nel PDF. Puoi fare doppio clic sull’icona o sulla miniatura nel PDF per aprire il file di origine dell’Ole Object.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// Open the template file
Workbook wb = new Workbook("embedded-attachments-example.xlsx");
// Set to embed Ole Object attachment.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.setEmbedAttachments(true);
// Save the pdf file with PdfSaveOptions
wb.save("output.pdf", pdfSaveOptions);

embedded-attachment.png