Earlier quoted context omitted.
I wrote a PhantomJS script to download data from my bank accounts. They offer no API and disfunctional text-based exports, their websites are ridden with "good" (=terrible) web & security practices, like 3-characters-of-the-whole-password authentication, single-tab sessions, frames, etc. that makes it pretty much impossible to scrape with Python but relatively easy with a fully-fledged browser (although that still re…
Who do you bank with?
PhantomJS: Stepping down as maintainer
151–160 of 236 posts
Re: PhantomJS: Stepping down as maintainer
#152Earlier quoted context omitted.
This sounds horrible.. In general all these html->pdf ways of generating pdfs sounds horrible -- why don't people use latex for this?
Because you probably already did the layout work in HTML to display on screen to the user and now just want a PDF version of it. Or you can redo the layout in latex and maintain two layouts. The full print css is actually pretty complete, problem is the only browser that fully supports it is PrinceXML. None of the major browsers seem to care much about print layout.
Re: PhantomJS: Stepping down as maintainer
#153Besides testing, my team uses phantomjs to convert pages to PDF and also to convert javascript generated charts to images. This is sad news, I'm don't think chrome eventually will add support for.
There's wkhtmltopdf[1] when you need the PDF functionality. It is licensed with LGPL, so you can make it interop with your commercial product. [1]: https://wkhtmltopdf.org/
Headless Chrome might solve this issue once and for all though.
Re: PhantomJS: Stepping down as maintainer
#154Re: PhantomJS: Stepping down as maintainer
#155Re: PhantomJS: Stepping down as maintainer
#156Earlier quoted context omitted.
There's wkhtmltopdf[1] when you need the PDF functionality. It is licensed with LGPL, so you can make it interop with your commercial product. [1]: https://wkhtmltopdf.org/
Second wkhtmltopdf ... I love PhantonJS but wkhtmltopdf is a better tool for PDFs.
Re: PhantomJS: Stepping down as maintainer
#157Earlier quoted context omitted.
Second wkhtmltopdf ... I love PhantonJS but wkhtmltopdf is a better tool for PDFs.
did you have luck with SPA to PDF? I recall I tried it but with no luck for good javascript support.
We are using it for reports and we are tailoring our HTML specifically to the reports so we haven't had that issue. If I needed Javascript it may not be the best solution.
I like that it generates full PDFs (with real text objects) though not just a static image. I'm not sure if you can generate a PDF like that with PhantomJS. I haven't tried.
Re: PhantomJS: Stepping down as maintainer
#158Earlier quoted context omitted.
There's wkhtmltopdf[1] when you need the PDF functionality. It is licensed with LGPL, so you can make it interop with your commercial product. [1]: https://wkhtmltopdf.org/
While it's much better than PhantomJS, still causes a lot of issues. We run a paid pet project [1] for html to pdf conversion and most of our customers have stories beginning with PhantomJS then moving to wkhtmltopdf then finally going for something else due to issues with both. Headless Chrome might solve this issue once and for all though. [1] https://restpack.io/html2pdf
Re: PhantomJS: Stepping down as maintainer
#159Open source software has to be one of the least efficient markets out there. If you sum up the very real value PhantomJS has delivered to very real companies over the last several years, napkin math tells me we wouldn't have the project being abandoned for being a "bloody hell" to work on.
Does it have to be a market?
Re: PhantomJS: Stepping down as maintainer
#160IMO it'd be a really smart move for Google to hire Vitaly to help with the launching of this feature and things around it. He has done a great job with PhantomJS. Even an acquisition [1] of PhantomJS would totally make sense, then let him keep working on it but based on headless Chrome and with real resources. [1] Careful how you spin it for this route, learn from TJ/Express https://medium.com/@tjholowaychuk/stronglo…
This is an excellent idea.
I played around with PhantomJS for something at my current job - it ultimately didn't work out for us (and we went a different route), but it was interesting and fun to learn about.