looking for a solution for generating pdf with client side (angular js)

16,273

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

Share:
16,273
Abder-Edrs
Author by

Abder-Edrs

Future graduate master 2 E-Services University of Lille 1. I am currently a professional contract in Formaeva, where I am responsible projects Front End. My professional goal is to integrate a dynamic and successful company, where I can draw upon all my qualities and predispositions for the position of Applications Engineer to meet the chalenges high level, allowing me to participate actively in the development business and spend later as Chief of the project.

Updated on June 06, 2022

Comments

  • Abder-Edrs
    Abder-Edrs almost 2 years

    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?

    • Mohammad Sepahvand
      Mohammad Sepahvand about 10 years
      have a look at the pdf.js project on github.
    • Abder-Edrs
      Abder-Edrs about 10 years
      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
  • sports
    sports about 9 years
    Isnt that a server side solution? In your question it looks like you were looking for a client side pdf creator
  • Abder-Edrs
    Abder-Edrs almost 2 years
    Yes, i look for server side solution :)