remipichon / manifmaker

MIT License
1 stars 1 forks source link

export PDF #333

Open remipichon opened 7 years ago

remipichon commented 7 years ago

https://github.com/openlabs/docker-wkhtmltopdf/blob/master/Dockerfile

waiting #390

~Docker~

Manifmaker

NGINX

remipichon commented 7 years ago

HAHAHA, je suis trop con. Pas besoin de faire wkhtmltopdf sait lire depuis une URL. Il suffit de dev ca => #390

renderWithData renderComponentToHTML write string to file + add css (merged-style.css)

For Blaze Components to work well on the server side they have to use pure Blaze reactivity to render its content, and do not manipulate rendered DOM in the onRendered life-cycle hook (the hook is not even called when using  ~~==> comment faire pour ajouter le marker sur la map ? ==> reflechir a stocker une image de la map avec le marker dessus (voir maps api si c'est posible d'exporter un SVG/png)

remipichon commented 7 years ago

about viewport

fixed to 800*600, il faut donc tout faire rentrer dans ce view port ? https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1508

If you do want to change the screen resolution, you'll have to run it under xvfb and use the --use-xserver option

Viewport : 1280x1024 (see /production/export-pdf/Dockerfile)

remipichon commented 7 years ago

Page split

every 1280 pixels ... $(...).offset().top mais faut etre super précis, au pixel pres...