And what approach do you have to make a PDF out of the HTML? 

I ask because I was looking around a little and to me it seems that almost
everything around is using ReportLab somewhere along the toolchain. There is
Genshi and there is Cheetah (OpenObject aka OpenERP aka TinyERP is looking
into that) used to create HTML or RML - > but in the end it seems the use
always RL for PDF Generation.

There is one approach using jasper for PDF creation
http://cybernetics.hudora.biz/projects/wiki/pyJasper.

Another one is using GENSHI to create odts. They talk also on their homepage
http://relatorio.openhex.org/ about trml2pdf, but I can't find a trace where
they load it. The tool can  render Open Office ODT. The people behind this
seem to be fomer Tiny Employees - working now on a fork called Tryton
http://www.tryton.org/.

A third one is to utilize Open Office with externally controlled makros and
then headless OO to batch create pdf - but I haven'T digged into to
understand it.

The approach I use is to render the order confirmation / invoice data (and
only this, no logo stuff or terms) with trml2pdf and then to merge the
result with pdftk (pdf toolkit http://www.accesspdf.com/pdftk/) in watermark
mode. The background pdf documents I create with Scribus - this gives you
really control for the layout and print it out of Scribus as PDF).

This allows to have pretty simple RML for the pure data, and because it is
simple it isn't so dificult to maintain.  
 
Rgds
g

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Bojan Mihelac
Sent: Saturday, September 20, 2008 7:56 PM
To: Satchmo users
Subject: Re: Generating unicode with trml2pdf


I thought about the same for my case.
Adding option for HTML format along with PDF seem good option for me:

> (r'^admin/print/(?P<doc>[-\w]+)/(?P<id>\d+).(?P<format>\w+)', 
> 'satchmo.shipping.views.displayDoc'),

that way ReportLab and TRML2PDF could be optional packages.

Bojan


On Sep 20, 7:18 pm, Frank <[EMAIL PROTECTED]> wrote:
> I ditched Reportlab and TRML2PDF entirely and now I have it all in 
> HTML templates.
>
> On Sep 20, 12:42 pm, "Marcin Chojnowski" <[EMAIL PROTECTED]>
> wrote:
>
> > It's much easier to user RML as there are converters from Openoffice 
> > format. So you can design new invoice easily.
>
> > I'm not sure sure RML2PDF uses reportlab to generate PDF. Anyway I 
> > don't think that UTF-8 will be so hard to do.
>
> > 2008/9/20 Denis Frère <[EMAIL PROTECTED]>:
>
> > > 2008/9/20 Bruce Kroeze <[EMAIL PROTECTED]>:
> > >> On Fri, Sep 19, 2008 at 3:48 AM, Bojan Mihelac <[EMAIL PROTECTED]>
wrote:
> > >>> Hi all - looking at user guide for RML it looks like it is not 
> > >>> currently possible to use other encoding for PDF then iso-8859-1 
> > >>> - it
>
> > >>> Is there some workaround to make invoices with UTF-8? For 
> > >>> example what you do if customer have "special" characters if name or
 address.
>
> > > Reportlab 2.0 and up uses unicode. Is it necessary to stick with RML ?
> > > When you have designed a good template, it's not so difficult to use.
>
> > > Denis
>
> > --
> > Marcin
> > jid: mchojnowski<at>gmail.com uin: 2297222 Najpierw byl Wielki 
> > Wybuch, a potem ktos sie zalogowal do systemu.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to