How to create PDF files from HTML/URL in Total.js?
This blog post describes how to create PDF files from HTML in Total.js web applications.
How to create PDF files from HTML/URL in Total.js?
- install PhantomJS
$ apt-get install phantomjs
or download it directy from http://phantomjs.org/download.html wkhtmltopdf
doesn't work correctly
Create an operation
E.g. /definitions/operations.js
:
Usage
You can execute the code below everywhere in your Total.js application:
Other posts from Total.js Platform
- 2024-03-22How to scale your Total.js application with clusterization?
- 2024-03-01February report 2024
- 2024-02-19Building a CRUD API with Total.js: A Step-by-Step Guide
- 2024-02-01January report 2024
- 2024-01-18LessCode app
- 2024-01-16Differences between Total.js v4 and Total.js v5
- 2024-01-09JavaScript Unveiled Prototypes #02: Array.async()
- 2024-01-04Javascript unreveiled prototypes #01: Array.wait()
- 2024-01-04JavaScript Unveiled Prototypes #03: Array.findItem() and Array.findIndex()
- 2023-12-31December report 2023