Exportieren der Dokumentstruktur beim Konvertieren in PDF
Die PDF-Logikstruktur bietet eine Mechanismus zur Integration von Informationen über die Struktur des Dokumentinhalts in eine PDF-Datei. Aspose.Cells erhält Informationen über die Struktur aus einem Microsoft Excel-Dokument, wie Zelle, Zeile, Tabelle, Arbeitsblatt, Bild, Form, Kopf-/Fußzeile usw.
Mit der Option PdfSaveOptions.ExportDocumentStructure können Sie ein verschlagwortetes PDF mit exportierter Dokumentenstruktur speichern.
| // For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
| // Open the excel file with image, shape, chart, etc. | |
| Workbook wb = new Workbook("document-structure-example.xlsx"); | |
| // Set to export document structure. | |
| PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(); | |
| pdfSaveOptions.setExportDocumentStructure(true); | |
| // Save the pdf file with PdfSaveOptions | |
| wb.save("output.pdf", pdfSaveOptions); |