عرض خطوط الشبكة الصلبة أثناء تحويل إكسل إلى PDF

Contents
[ ]

للتوافق مع الإصدارات الأقدم، يعرض Aspose.Cells خطوط الشبكة كخط متقطع بشكل افتراضي أثناء تحويل إكسل إلى PDF. ومع ذلك، يعرض إكسل الحديث خطوط الشبكة كخط صلب اليوم.

باستخدام خيار PdfSaveOptions.GridlineTypes، يمكن لـ Aspose.Cells أيضًا عرض خطوط الشبكة كخط صلب.

// 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);

solid-gridline.png