[Seaside] WAComponent to PDF

Johan Brichau johan at inceptive.be
Thu Oct 22 14:08:00 UTC 2015


Hilaire,


Have you considered generating the pdf in the browser using a javascript library?

I recently stumbled upon this: http://www.cloudformatter.com/css2pdf <http://www.cloudformatter.com/css2pdf>
If you only want to generate pdf with tables, see datatables.net <http://datatables.net/> ‘buttons’ plugin.

cheers
Johan

> On 22 Oct 2015, at 15:56, Hilaire <hilaire at drgeo.eu> wrote:
> 
> Hello,
> 
> I would like to render WAComponents as PDF documents.
> I took at look at Artefact, but it is an important work to render again
> the data as PDF with Artefact, not to mention I feel it is a duplicated
> work. Moreover, I have quite long documents spanning over several pages,
> some of my tables are complex with some columns spanning over 2 or 3
> columns and I have about 50 different documents to turn as PDF file.
> 
> Now I am think about rendering these components on dedicated pages, then
> using wkhtmltopdf.
> What I would do is get these components rendered at dedicated urls, then
> call wkhtmltopdf with these urls as arguments.
> Practically how will you do that? How to forge an URL for a page
> rendering the component with a dedicated decoration for PDF conversion
> (dedicated css, header, footer)?
> My initial though is REST. Is it the right direction? Or are there other
> options?
> 
> Thanks for tips, enlightenment or thought on the matter.
> 
> Hilaire
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> http://google.com/+DrgeoEu
> 
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20151022/b77007b8/attachment.htm


More information about the seaside mailing list