The Mechanic
The Mechanic

Reputation: 2329

Angular 5 generate Html to pdf?

I've 2 questions my project is in ANGULAR 5.

Am looking for a way to generate HTML to PDF. Generated pdf shouldn’t be an image. It should be like the Actual PDF user can copy text etc.

Note: please don't suggest jsPdf.

Another approach is am looking for a way to send the whole HTML with inserted values to an Endpoint. The Html I am trying to send is Only content editable divs.

How can I do this?

Help and suggestion would be appreciated. THanks

Upvotes: 8

Views: 5022

Answers (1)

Charly
Charly

Reputation: 166

You have also this:

https://github.com/moshensky/html-to-pdf-converter

But in my opinion the best way is to send just the data you want to format to a backend service and format it in the backend.

Upvotes: 1

Related Questions