pdf_excel_to_pdf
Excel to PDF — Convert Excel spreadsheets (.xlsx / .xls / .csv / .ods) to PDF with fit-to-page, orientation control, paper size, sheet selection, repeat header rows, custom header/footer, PDF/A output, password protection, watermark, and per-sheet split mode. Hybrid pipeline: excelize preprocesses the xlsx (page layout, sheet visibility) then LibreOffice converts. [category: pdf]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Input spreadsheet (.xlsx, .xls, .csv, .ods) | |
| pdfa | No | Save in the PDF/A archive format, which embeds everything the file needs to open correctly in decades' time. Off unless you need it; 2b is the version most archives ask for. | none |
| scale | No | Print size as a percentage, where 100 is life size and less shrinks the sheet to fit more on a page. Leave it blank unless you want a specific percentage - setting any value here turns Fit to page off. | |
| footer | No | Per-page footer template. Same tokens as header. | |
| header | No | Per-page header template. Tokens: {page}, {pages}, {sheet}, {date}, {filename}. | |
| sheets | No | Which sheets to convert: all, or the names or positions you want — Sales,Ledger or 0,2. | all |
| margins | No | default|narrow|normal|wide (Excel's inch presets); default keeps the sheet's own margins. Only applies to .xlsx input; unknown → default. | default |
| quality | No | How sharp the pictures and charts stay in the PDF. Leave blank for the converter's own setting. | |
| password | No | Open password for the output PDF (user password). | |
| bookmarks | No | Add PDF bookmarks, one per sheet. | |
| fitToPage | No | Fit each sheet to a page. 'width' prevents column cutoff; 'one-page' squeezes each sheet onto a single page. | none |
| gridlines | No | Print the faint grid between cells. Leave blank to keep whatever the sheet already does. | |
| paperSize | No | a4 (default) | letter | legal | tabloid | a3. Only applies to .xlsx input (excelize preprocess); unknown values silently become a4. | a4 |
| splitMode | No | One PDF containing every sheet, or a ZIP holding one PDF per sheet. | combined |
| repeatRows | No | Print titles — rows that repeat on every page. e.g. '1' or '1-3'. | |
| orientation | No | Page orientation. 'auto' picks landscape for sheets with ≥8 data columns. | auto |
| showHeaders | No | Print the A B C column letters and 1 2 3 row numbers down the edges. Leave blank to keep the sheet's own setting. | |
| permPassword | No | A second, different password that locks printing, copying and editing. Only takes effect if you also set an open password above. | |
| watermarkFont | No | Lettering style for the watermark. Latin alphabet only. Only used when there is watermark text. | Helvetica |
| watermarkText | No | Optional text watermark stamped on every page of the output. | |
| watermarkColor | No | Colour of the watermark lettering, as #rgb or #rrggbb. Anything else becomes mid-grey. Only used when there is watermark text. | #808080 |
| watermarkScale | No | Size multiplier applied on top of the lettering size. Only used when there is watermark text. | |
| watermarkOpacity | No | How solid the watermark looks: 1 is fully solid, 0.3 is a faint ghost. This is a fraction, not a percent. Only used when there is watermark text. | |
| watermarkFontSize | No | Height of the watermark lettering in points. Only used when there is watermark text. | |
| watermarkPosition | No | Where the watermark sits on the page. Only used when there is watermark text. | c |
| watermarkRotation | No | Angle of the watermark in whole degrees; 45 is the classic diagonal. Only used when there is watermark text. |