This little humble script joins an Excel file with a PDF.
- Install Ghostscript for compressing pdfs
MacOS
brew install ghostscript
Windows https://ghostscript.com/releases/gsdnld.html
The CLI uses one parameter:
pdf-xlsx.py -f C:\my_files
- Look for xlsx file
- Convert it to PDF
- Join this new PDF with other in folder.
- Compress using ghostscript
pyinstaller xls2pdf.py --onefile --noconsole
The exe will be in the dist folder.
ps: If windows or anti-virus flags the exe as malware, remove the --onefile