Speichern Sie Excel in PDF mit Standard- oder Mindestgröße

Speichern Sie Excel in PDF mit Standard- oder Mindestgröße mit Microsoft Excel

Der folgende Screenshot zeigt, wie Sie Excel in PDF mit Standard- oder Mindestgröße unter Verwendung von Microsoft Excel speichern.

todo: Bild_alt_Text

Speichern Sie Excel in PDF mit Standard- oder Mindestgröße unter Verwendung von Aspose.Cells

Der folgende Beispielcode zeigt, wie Sie Excel in PDF mit Standard- oder Mindestgröße speichern könnenPdfSaveOptions.OptimizationTypeEigentum.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
String dataDir = Utils.getDataDir(SaveExcelToPDF.class);
// Load excel file into workbook object
Workbook workbook = new Workbook(dataDir + "sample.xlsx");
// Save into Pdf with Minimum size
PdfSaveOptions opts = new PdfSaveOptions();
opts.setOptimizationType(PdfOptimizationType.MINIMUM_SIZE);
workbook.save(dataDir + "output.pdf", opts);