Skip to content

Save as type #1041

Answered by JanMarvin
lz1nwm asked this question in Q&A
Jun 6, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JanMarvin
Comment options

@lz1nwm
Comment options

Answer selected by lz1nwm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants