[Erp5-users] Forcing oood to produce PDF/A rather than PDF

Kazuhiko Shiozaki kazuhiko at nexedi.com
Fri Feb 11 09:50:46 CET 2011


Hello Marco,

On 11/02/2011 08:34, Marco Bizzarri wrote:
> I'm using oood in a custom project; it works quite well for the
> production of PDF from ODT documents (I even submitted a patch on it a
> couple of years ago, which was accepted), and I'm quite satisfied from
> it (I should say: it is rock solid).
> 
> Now, I've an use case where the PDF produced via oood should be PDF/A
> and nor simple PDF. I thought the simplest way to do it was to alter the
> settings of the OpenOffice on the server machine so that PDF/A where
> produced, but this, quite surprisingly, causes OpenOffice to run at
> 100%. At that point, I've to kill the process.
> 
> Any suggestion on what could be going on here?

First, oood is replaced by cloudooo. Please consider switching to
cloudooo. cloudooo treats such kind of 'OpenOffice unavailable' problems
much better than oood.
http://pypi.python.org/pypi/cloudooo

And for ODT -> PDF/A conversion, you can add an option to
writer_pdf_Export filter. We already add some options in
impress_pdf_Export filter, and you can see the example in:

[cloudooo/handler/ooo/helper/unoconverter.py]
    elif filter_name == "impress_pdf_Export":
      property = PropertyValue('FilterData', 0,
                       uno.Any('[]com.sun.star.beans.PropertyValue',
                       (PropertyValue('ExportNotesPages', 0, True,
0),),), 0)

And you can see which options are available for writer_pdf_Export filter at:
http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export

I personally have not tried PDF/A conversion, so please try and share
your experience with us.

Good luck.
-- 
Kazuhiko Shiozaki, Nexedi SA Senior Consultant
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
ERP5: Full Featured High End Open Source ERP
http://www.erp5.com
ERP5 Wiki: Developer Zone for ERP5 Community
http://www.erp5.org


More information about the Erp5-users mailing list