Excel to PDF from the command line
Every visible worksheet, in workbook order, into one PDF. Hidden sheets stay hidden. Print areas, orientation, and fit-to-page settings from the file are respected.
Processed on our server and deleted after 1 hour. Not used for training, not viewed by people.
Prefer the command line?
brew install jetformat/tap/jetformatnpm install -g jetformatVersion 0.1.8. Extract and put jetformat on PATH.
jetformat --version
jetformat word to-pdf report.docx -o report.pdfjetformat excel to-pdf finance.xlsx -o finance.pdf
jetformat excel recalc finance.xlsx -o finance.xlsx --force- -o, --output
- Output path. Defaults to the input name with .pdf.
- --font-dir
- Extra font directory, repeatable.
- --force
- Overwrite an existing output file.
- excel recalc
- Recompute formulas first when the file was written by a library that does not cache results.
Works
- .xlsx files
- Visible worksheets, workbook order
- Print area, orientation, fit to page
- Cell fills, borders, merged cells
- Cached formula results
Does not
- Legacy .xls and macro-enabled .xlsm
- Charts and images inside sheets are not rendered yet
- Number formats on recalculated cells are not applied yet
- Hidden sheets, by design
Read and edit the source file
Read free · writes use creditsinspect / get / set / recalc
Inspect sheets, formulas, and named ranges. set writes a value or formula; recalc updates cached results.
jetformat excel inspect finance.xlsx --json
jetformat excel get finance.xlsx --sheet Summary --cell B12
jetformat excel set finance.xlsx --sheet Summary --cell A1 --value 5 -o finance.xlsx --force
jetformat excel recalc finance.xlsx -o finance.xlsx --forcetable / sort / filter / freeze
Format as table, sort a column, set an auto-filter, freeze panes, and merge cells. Validation is a comma-separated dropdown only.
jetformat excel table finance.xlsx --sheet Summary --range A1:B2 --name Sales -o finance.xlsx --force
jetformat excel sort finance.xlsx --sheet Summary --column A -o finance.xlsx --force
jetformat excel filter finance.xlsx --sheet Summary --range A1:C20 -o finance.xlsx --force
jetformat excel freeze finance.xlsx --sheet Summary --row --col -o finance.xlsx --forceadd-sheet / protect / protect-sheet
Add, copy, rename, or remove visible sheets. protect locks workbook structure; protect-sheet locks one sheet.
jetformat excel add-sheet finance.xlsx --name Extra -o finance.xlsx --force
jetformat excel copy-sheet finance.xlsx --from Summary --name Copy -o finance.xlsx --force
jetformat excel protect finance.xlsx --password secret -o finance.xlsx --force
jetformat excel protect-sheet finance.xlsx --sheet Summary --password secret -o finance.xlsx --forceinsert-row / hide-column / print-area
Insert or hide rows and columns. There is no delete-row command. Column width is a character width.
jetformat excel insert-row finance.xlsx --sheet Summary --row 2 -o finance.xlsx --force
jetformat excel hide-column finance.xlsx --sheet Summary --column A -o finance.xlsx --force
jetformat excel column-width finance.xlsx --sheet Summary --column A --width 18 -o finance.xlsx --force
jetformat excel print-area finance.xlsx --sheet Summary --range A1:B2 -o finance.xlsx --forcemerge / split
Merge copies cell values and formulas from visible sheets. Charts and images may not copy.
jetformat excel merge a.xlsx b.xlsx -o workbook.xlsx --force
jetformat excel split workbook.xlsx -o workbook-parts --forceQuestions
Why is a formula cell blank in the PDF?
The file has no cached value for it, which happens with files written by openpyxl or similar. Run excel recalc first, then to-pdf.
How are pages counted?
On the output PDF. A workbook that prints on two pages costs 2 credits regardless of how many sheets it has.
Can I read one cell without converting?
Yes. excel get finance.xlsx --sheet Summary --cell B12 is free and needs no account.
Is the online converter free?
Without an account you get 2 runs a day, up to 10 MB and 10 pages each. Sign in for 80 free pages every month and files up to 50 MB; after that it is 1 credit per page, shared with the CLI.
What happens to the file I upload?
It is processed on our server and deleted as soon as the job finishes. The result is deleted 1 hour after the upload, or when you press Delete now. Files are not used for training and not viewed by people.
Online or command line?
Online is quickest for a file now and then. The CLI keeps the file on your machine, handles folders of files, and runs from scripts and coding agents.
Convert one real file today.
Install the CLI and inspect a document with free reads. Office edits use one credit per command; PDF writes use page-based credits. Every account gets 80 free credits a month, with plans and packs for more.
brew install jetformat/tap/jetformatnpm install -g jetformatVersion 0.1.8. Extract and put jetformat on PATH.
jetformat --version
jetformat word to-pdf report.docx -o report.pdf