Open remipichon opened 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)
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)
every 1280 pixels ... $(...).offset().top mais faut etre super précis, au pixel pres...
export 1 planning orgaadd a /export/.../html/clean route that will be ready to be printer (no buttons, paginghttps://github.com/openlabs/docker-wkhtmltopdf/blob/master/Dockerfilewaiting #390~Docker~
openlabs/docker-wkhtmltopdfnode servernode http endpointwith Docker cli (cf devops exercice)mount docker sock (cf devops exercice) and docker run openlabs/docker-wkhtmltopdfdocker cp pdf fom wkht to nginx or node serve static filePull export-pdf iimage at start-up: TO TESTAdd export folder as env: TO TESTAdd it to Docker compose: TO TESTManifmakeruse node APImanifmaker : can either use local or remote export node endpoint: #GENERICnginx URLde l'UI pour montrer la progression patati patataNGINXserve static file by full name onlyfilename should be encoded (no space)