Re: WAComponent to PDF

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.