1

Can anyone suggest a good (preferably free or inexpensive) java script library that can convert HTML (with css links) to PDF? Right now i am using flying java library. But the problem is when we switched over to https it fails to process the css files and doesnt work. Also every time I need to generate a pdf i need to do it on the server side. So a java script library (or any other client side scripting language) would be ideal.

Thanks!

1
  • I will be quite surprised if there is such a thing. For the money (that is, $0), FlyingSaucer is by far the best such solution I've seen. In my experience its CSS support is amazing, and frankly I can't understand what switching to "https" could possibly have to do with FlyingSaucer invocation. Commented Oct 2, 2010 at 20:04

1 Answer 1

2

Although it's very experimental and it doesn't work in every browser, here you may find a solution:

http://code.google.com/p/jspdf/

Sign up to request clarification or add additional context in comments.

1 Comment

That looks pretty interesting, but it's a far cry from the facilities FlyingSaucer was providing to @hese. The FlyingSaucer tools convert XHTML with CSS (incl. some important print enhancements from CSS3) to PDF, and it's got a very powerful and capable layout engine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.