in reply to Converting Excel to Pdf
If you're on Windows and have Excel installed, the easiest way is to install a PDF printer driver and use Win32::OLE to drive Excel to print to the PDF printer driver.
The alternative approach would be to use OpenOffice.org to do the conversion. You can launch OpenOffice in "server mode" where it listens to a TCP port (8100?) and where you can send commands to it. Potentially, OpenOffice::UNO works for that, but I haven't done that myself.
Another approach could be to use Spreadsheet::ParseExcel or the Excel HTML export or the XLSX export to create a file that you can process form Perl and then use PDF::Template to write the data into a PDF file, but that method will certainly lose fancy formatting and charts.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting Excel to Pdf
by merrymonk (Hermit) on Jun 15, 2009 at 08:20 UTC | |
by Corion (Patriarch) on Jun 15, 2009 at 08:25 UTC | |
by merrymonk (Hermit) on Jun 15, 2009 at 09:16 UTC | |
by Corion (Patriarch) on Jun 15, 2009 at 09:24 UTC |