I've adopted the poor man's solution:
1. Output my report in HTML/CSS.
2. Use wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) to convert it to PDF.

The drawback is obviously the call to OSProcess but it gets the job done.

On 25/04/12 06:06, Christoph Wysseier wrote:
For our web applications a PDF generator is a crucial part too. There
were AFAIK several attempts to build such a framework in Smalltalk
(SPDF, ...) but in the end none of these became feature-rich and/or
powerful.

I really like the new effort. Due to the past experience I am skeptical
if such a framework really makes sense but I would love to be convinced
from the opposite. Powerful PDF generators such as Apache FOP (based on
standardised XSL:fo) face what a feature-complete framework would need
to implement (area model with relative text flow, image processing,
typography including font embedding, formatting, ...).

Olivier, this would be my wish list BTW and very cool! ;)

For those who cannot wait I propose to use Apache FOP
(http://xmlgraphics.apache.org/fop) for PDF generation. Although built
with Java (slow, requires a lot of ressources, etc.) it can be used as
black box (servlet) fed using XML and XSL:fo data over a Unix socket.
Most of our applications are using this solution at the moment as it
offers a powerful solution for professional pdf documents. Ugly but
works like a charm since years here...

Cheers,
Chris

Am 25.04.12 11:23, schrieb Stéphane Ducasse:
We really want to generate report for Moose so we are really
interested by this effort.

Stef

On Apr 25, 2012, at 10:18 AM, Damien Cassou wrote:

Hi Olivier,

On Wed, Apr 25, 2012 at 10:15 AM, Olivier Auverlot
<[email protected]> wrote:
If you test it, thanks for your remarks and suggestions.

such a framework makes a lot of sense. Could you please create a few
unit tests or a small web page with examples so everyone can get a
glimpse of the API rapidly? Some examples for the Common Lisp
equivalent are at: www.fractalconcept.com/asp/asdataQuQhZ0XhCuWs

Best,

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




--
http://tulipemoutarde.be
CA: +1 778 558 3225
BE: +32 65 709 131

Reply via email to