Created
April 8, 2021 01:50
-
-
Save aspose-com-gists/60db4d77167381399d6be40b2b949a07 to your computer and use it in GitHub Desktop.
Convert Excel to PDF in Node.js
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
// load a workbook | |
var workbook = aspose.cells.Workbook("workbook.xlsx"); | |
// create and set PDF options | |
pdfOptions = aspose.cells.PdfSaveOptions(); | |
pdfOptions.setCompliance(aspose.cells.PdfCompliance.PDF_A_1_B); | |
// convert Excel to PDF | |
workbook.save("Excel to PDF - Compliance.pdf", pdfOptions); |
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
// load a workbook | |
var workbook = aspose.cells.Workbook("workbook.xlsx"); | |
// convert Excel to PDF | |
workbook.save("Excel to PDF.pdf", SaveFormat.PDF); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment