We’re are adding the footer to the Excel sheet before converting to PDF with the following code. Is there something in the code causing this? Is this why the PDF has bold fonts
String date = "March 14, 2023";
pageSetup.setFooter(0, "&\"Arial\"&8&K02-074&K444444&B" + date + "&B");
Sample code:
String location = ""; // Give xlsx location
Workbook book = new Workbook(location);
var pageSetup = book.getWorksheets().get(0).getPageSetup();
var date = "Sep 27, 2022";
pageSetup.setFooter(0, "&\"Arial\"&8&K02-074&K444444&B" + date + "&B");
// save EXCEL as PDF
book.save("pdfOutput.pdf", com.aspose.cells.SaveFormat.AUTO);
// load the PDF file using Document class
try (Document document = new Document("pdfOutput.pdf")) {
// save document in DOC format
document.save("output.pptx", com.aspose.pdf.SaveFormat.Pptx);
}
FIle: input.xlsx.zip (6.7 KB)
Could you please take a look?
Regards,
Sitamsh