A fast, lightweight utility to convert Excel (.xlsx) files to PDF format with just a drag and drop. Built with Bun for maximum performance and easy distribution.
- Simple Conversion: Drag & drop Excel files onto the executable to convert them to PDF
- Batch Processing: Convert multiple Excel files at once
- Visual Feedback: Progress bar shows real-time conversion status
- Same-Directory Output: PDFs are saved in the same folder as source files
- Cross-Platform: Works on Windows, macOS, and Linux
- Detailed Logging: Comprehensive logs for troubleshooting
- LibreOffice: The application uses LibreOffice for conversion
-
Download the latest release for your platform from the Releases page
-
Extract the executable to any convenient location
-
On macOS/Linux, make the file executable:
chmod +x xlsx2pdf-mac # or xlsx2pdf-linux
If you prefer to build the application yourself:
# Clone the repository
git clone https://github.com/Sephyi/xlsx2pdf.git
cd xlsx2pdf
# Install dependencies
bun install
# Build for your platform
bun run build
Simply drag one or more Excel (.xlsx) files onto the XLSX2PDF executable:
- The application will open a terminal window with progress information
- When conversion is complete, you'll find PDF files in the same directory
- Each PDF will have the same name as its source Excel file
# Convert a single file
./xlsx2pdf-mac path/to/file.xlsx
# Convert multiple files
./xlsx2pdf-mac file1.xlsx file2.xlsx file3.xlsx
XLSX2PDF requires LibreOffice to perform Excel-to-PDF conversion. The application will:
- Try to find LibreOffice automatically in common installation locations
- Create a
.libreoffice_path
configuration file if needed - Use the path specified in this file if LibreOffice isn't found automatically
-
Windows:
- Standard:
C:\Program Files\LibreOffice\program\soffice.exe
- Scoop:
C:\Users\{username}\scoop\apps\libreoffice\current\LibreOffice\program\soffice.exe
- App Data:
C:\Users\{username}\AppData\Local\Programs\Scoop\apps\libreoffice\current\LibreOffice\program\soffice.exe
- Standard:
-
macOS:
/Applications/LibreOffice.app/Contents/MacOS/soffice
-
Linux:
/usr/bin/soffice
/usr/lib/libreoffice/program/soffice
Check the following log files if you encounter issues:
xlsx2pdf_log.txt
: Detailed information about the conversion process.libreoffice_path
: Configuration file for LibreOffice path
If LibreOffice isn't detected automatically:
- Ensure LibreOffice is installed on your system
- Edit
.libreoffice_path
with the full path to thesoffice
executable - Make sure to include the full path including the executable name (
soffice.exe
on Windows)
If files aren't converting properly:
- Check that your Excel files aren't password-protected
- Ensure you have write permissions in the directory
- Check the log file for specific error messages
- Try running the application from a command line to see detailed output
If the application window closes immediately:
- Run it from a command prompt/terminal to see error messages
- Check the log file for details
- Ensure LibreOffice is correctly installed and accessible
XLSX2PDF is built with Bun and TypeScript, using Bun's native APIs for maximum performance.
The build system is almost completely Bun-native, using:
Bun.spawn()
for process executionBun.file()
andBun.write()
for file operationsBun.mkdir()
for directory creation
The project includes GitHub Actions workflows for automatic building on all platforms:
- Windows (.exe)
- macOS (executable)
- Linux (executable)
To build manually for a specific platform:
# Windows
bun run build:win
# macOS
bun run build:mac
# Linux
bun run build:linux
MIT License
- Built with Bun
- Uses LibreOffice for PDF conversion