The converter uses JSZip to unpack the .xlsx file (which is a ZIP archive of XML files) and fast-xml-parser to read the worksheet data. Each sheet is then rendered as a formatted table in an A4 landscape PDF using pdf-lib, with alternating row colours and grid lines for readability.
Tips for Best Results
Ensure your spreadsheet has a clear header row — the first row is automatically bold and highlighted in the PDF. Remove any empty leading rows before converting. Very wide spreadsheets with many columns will have columns auto-scaled to fit the page.
Frequently Asked Questions
Are all sheets included in the PDF?
Yes. Every worksheet in the spreadsheet is rendered as a separate section in the PDF output, labelled with its sheet name.
Will formulas be calculated?
The converter reads the cached calculated values stored in the .xlsx file. If a file has never been opened in Excel or the values are stale, the formula results may not appear. Actual formulas are not re-evaluated in the browser.
What about charts and images?
Charts and embedded images are not currently rendered. Only cell data (text and numbers) is included in the PDF output.
The columns look too narrow — why?
Column widths are auto-scaled to fit the page in A4 landscape orientation. Very wide spreadsheets have all columns scaled proportionally to fit the page width. For very wide data, consider hiding unused columns in Excel before converting.
Does it support .xls (older Excel format)?
No. Only .xlsx (Excel 2007+) files are supported. Open your .xls file in Excel or Google Sheets and save it as .xlsx first.