[LRUG] PDF generation from HTML with complex JS
Stephen Bartholomew
steve at curve21.com
Wed Nov 2 09:51:26 PDT 2011
Prince kinda sucks on the first tests.
PhantomJS looks interesting - I'll give it a try and see what I can do with
it.
S
On Wed, Nov 2, 2011 at 4:46 PM, Jon Leighton <j at jonathanleighton.com> wrote:
> PhantomJS also does PDF output. No idea how good it is, but it's open
> source at least.
>
> On Wed, 2011-11-02 at 16:43 +0000, Stephen Bartholomew wrote:
> > I did mention this in my post - but I shyed away due to needing to
> > purchase before testing - however your reply made me look again and
> > they do have a non-commercial version for download now. This will at
> > least allow me to test before getting a commercial license.
> >
> >
> > I'll give that a go and let you know how I get on :)
> >
> >
> > S
> >
> > On Wed, Nov 2, 2011 at 4:38 PM, Matthew Ford <matt at bitzesty.com>
> > wrote:
> > Have you tried PrinceXML? The new version has some JS
> > support.
> >
> > --
> > Matthew Ford
> >
> > Director of Bit Zesty
> >
> > T: +44 (0)2071250160
> >
> >
> >
> >
> > This message contains confidential information and is intended
> > only for the individual named. If you are not the named
> > addressee you should not disseminate, distribute or copy this
> > e-mail. Please notify Bit Zesty immediately by e-mail if you
> > have received this e-mail by mistake and delete this e-mail
> > from your system. E-mail transmission cannot be guaranteed to
> > be secure or error-free as information could be intercepted,
> > corrupted, lost, destroyed, arrive late or incomplete, or
> > contain viruses. Bit Zesty does not accept liability for any
> > errors or omissions in the contents of this message, which
> > arise as a result of e-mail transmission. Opinions expressed
> > in this email are those of Matthew Ford, and do not
> > necessarily reflect those of Bit Zesty.
> >
> > Bit Zesty Ltd, a company incorporated in England with
> > registered company number 06883289.
> >
> >
> >
> >
> >
> >
> >
> > On 2 November 2011 16:08, Stephen Bartholomew
> > <steve at curve21.com> wrote:
> >
> >
> > Hey all,
> >
> >
> > On the subject of PDF generation, has anyone had
> > success converting JS-heavy pages to PDF?
> >
> >
> > The page in question is an Open Layers based map with
> > vector layers. There's an example of the map
> > here:
> http://communities4renewables.co.uk/open/maps/5cdbb6b2-33ed-4e7f-ad59-a24327006711
> >
> >
> > I've tried using wkhtmltopdf which somewhat works but
> > renders different layers inconsistantly depending on
> > the configuration. I've tried timeouts and all the
> > advice I can find online. I know there are paid
> > solutions like prince etc but I'm reluctant to invest
> > in that without an idea of the success.
> >
> >
> > Any help/experience would appreciated!
> >
> >
> > Cheers,
> >
> >
> > Steve
> >
> >
> > --
> > Stephen Bartholomew
> >
> > Curve21
> >
> > www.curve21.com
> > 07729 60 60 79
> > steve at curve21.com
> >
> >
> >
> >
> > _______________________________________________
> > Chat mailing list
> > Chat at lists.lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> >
> >
> >
> >
> >
> > _______________________________________________
> > Chat mailing list
> > Chat at lists.lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> >
> >
> >
> >
> >
> > --
> > Stephen Bartholomew
> >
> > Curve21
> >
> > www.curve21.com
> > 07729 60 60 79
> > steve at curve21.com
> >
> >
> > _______________________________________________
> > Chat mailing list
> > Chat at lists.lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
> --
> http://jonathanleighton.com/
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
--
Stephen Bartholomew
Curve21
www.curve21.com
07729 60 60 79
steve at curve21.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20111102/db0fd9d3/attachment-0003.html>
More information about the Chat
mailing list