How to generate ODF charts with Perl

704 Views Asked by At

How to create Open Document Format spreadsheet with charts using Perl?

2

There are 2 best solutions below

0
On

I use Spreadsheet::WriteExcel to make Excel spreadsheets with charts and I open the documents just fine in Open Office, on Linux or Windows.

You can also now use Excel::Writer::XLSX

3
On

Have you looked at ODF::lpOD? The page for ODF::lpOD::StructuredContainer says it gives access to "draw pages"

This manual page is related to the sections, item lists, draw pages, frames, and drawing shapes.

If you're not talking about the generalized format, and your target is specifically OpenOffice.org you want to get right down to the bottom of it you could use OpenOffice::UNO.

If nothing else, because charts exist in the XML, you can probably manipulate the XML in the document.