7

I am looking for a solution to generate pdf from (html + css + javascript) using AngularJs.

I tested two solutions:

  • jsPDF (it does not take the css)
  • Shrimp (based on Ruby)

which do not work for me.

How can I do it?

2
  • 1
    have a look at the pdf.js project on github. Commented Apr 28, 2014 at 8:58
  • After all this, I discovered the excellent PhantomJS product. The binary was easily installed on the server with no additional dependencies required, and came with a great deal of example code, including a working ‘print to PDF’ function out-of-the-box. With some minor tweaks, we customized the script for our use case, and had a PDF copy of our webpages in minutes. PhantomJS has been around since 2011 and is used by a variety of open source products, listed on their website Commented Apr 29, 2014 at 8:39

1 Answer 1

5

After all this, I discovered the excellent PhantomJS.

The binary was easily installed on the server with no additional dependencies required, and came with a great deal of example code, including a working ‘print to PDF’ function out-of-the-box. With some minor tweaks, we customized the script for our use case, and had a PDF copy of our webpages in minutes. PhantomJS has been around since 2011 and is used by a variety of open source products, listed on their websit

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

2 Comments

Isnt that a server side solution? In your question it looks like you were looking for a client side pdf creator
Yes, i look for server side solution :)

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.