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

Marco Bizzarri marco.bizzarri at gmail.com
Sat Feb 12 09:17:44 CET 2011


Hi, Kazuhiko, thanks for your feedback; I'll check cloudoood.

In the meantime, I've added the following line to mimemapper.py:


    self.filter_property_dict['writer_pdf_Export']['export_props'] = ( \
      PropertyValue('FilterData',0,uno.Any(
        '[]com.sun.star.beans.PropertyValue',
        (PropertyValue('SelectPdfVersion', 0, 1, 0),),), 0),
      )

According to the documentation, the SelectPdfVersion set to 1 should force
OpenOffice to produce PDF; however, as I experienced before, I get an
OpenOffice process running at 100%.

System is a Debian Lenny, with stuff from the backport: OpenOffice 3.1

Any hint of where I could look to debug this problem?

Regards
Marco

On Fri, Feb 11, 2011 at 9:50 AM, Kazuhiko Shiozaki <kazuhiko at nexedi.com>wrote:

> 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
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> https://mail.tiolive.com/mailman/listinfo/erp5-users
>



-- 
Marco Bizzarri
http://code.google.com/p/qt-asterisk/
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-users/attachments/20110212/74013ecb/attachment.htm>


More information about the Erp5-users mailing list