-
Is it possible to implement saving spreadsheets as different type e.g. 'pdf'? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @lz1nwm , I assume that you want to save a spreadsheet in a pdf as if you're printing from spreadsheet software? No sorry, this is not possible. It might be possible to run something like libreoffice in headless mode to export a spreadsheet to pdf, but direct export from openxlsx2 to pdf is not possible. The entire rendering process of the file happens in the spreadsheet software, we simply create some xml code that is interpreted by the spreadsheet software. There are various attempts to render spreadsheets in javascript which could be exported as pdf, but these are different projects that are unrelated to openxlsx2. |
Beta Was this translation helpful? Give feedback.
Hi @lz1nwm , I assume that you want to save a spreadsheet in a pdf as if you're printing from spreadsheet software? No sorry, this is not possible. It might be possible to run something like libreoffice in headless mode to export a spreadsheet to pdf, but direct export from openxlsx2 to pdf is not possible. The entire rendering process of the file happens in the spreadsheet software, we simply create some xml code that is interpreted by the spreadsheet software.
There are various attempts to render spreadsheets in javascript which could be exported as pdf, but these are different projects that are unrelated to openxlsx2.