Quantcast
Channel: PHP – Xlinesoft Blog
Viewing all articles
Browse latest Browse all 95

Generate PDF files using NodeJS and PDFMake

$
0
0

1. Download and NodeJS on the web server. For Windows choose 64-bit MSI installer

2. Run and install keeping all default settings

3. Inside your project create a new folder named pdfmake

4. Proceed to that folder, start the command line and run

5. This will create index.js, in this file we will add the code that create PDF file. In our case, we will be generating due invoices for our cliens.

PDFMake documentation

Here is index.js file we that generates invoices.

6. Now we are ready to create PDF files. Here is how you execute it from PHP code:

And the same for C#:


Viewing all articles
Browse latest Browse all 95

Trending Articles