Excel den PDF ye Dönüştürürken Kesintisiz Izgara Çizgisi
Contents
[
Hide
]
Aspose.Cells, eski sürümlerle uyumluluk için Excel’i PDF’ye dönüştürürken ızgaralı çizgiyi varsayılan olarak noktalı çizgi olarak oluşturur. Ancak, modern Excel günümüzde ızgaralı çizgiyi düz çizgi olarak oluşturur.
PdfSaveOptions.GridlineTypes seçeneği ile Aspose.Cells ayrıca ızgara çizgilerini kesintisiz çizgi olarak oluşturabilir.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// Create an empty Workbook | |
Workbook wb = new Workbook(); | |
//Prepare data | |
wb.getWorksheets().get(0).getCells().get("D9").putValue("gridline"); | |
//Enable to print gridline | |
wb.getWorksheets().get(0).getPageSetup().setPrintGridlines(true); | |
//Set to render gridline as solid line | |
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(); | |
pdfSaveOptions.setGridlineType(GridlineType.HAIR); | |
// Save the pdf file with PdfSaveOptions | |
wb.save("output.pdf", pdfSaveOptions); |