Converting Excel to PDF

From Simson Garfinkel
Jump to navigation Jump to search

I've been looking for a way to convert Excel to PDF. Here's what I've come up with:

1. On a mac, use `qlmanage` to convert the Excel file to an HTML file:

   qlmanage -p myfile.xls -o outputdir

2. Next, use wkhtmltopdf to convert the HTML to PDF:

   wkhtmltopdf Attachment3.html out1.pdf