This tutorial shows how to generate PDF files on the server with Node.js and PDFMake and call the PDF generator from a PHPRunner application. We use the same general approach for documents such as invoices, billing reminders and other PDFs that need to be created automatically on the server.
Before you start
You need:
- access to the web server where the generated application runs;
- permission to install and run Node.js on that server;
- a folder in the PHPRunner project where the PDFMake script and its dependencies can be stored;
- a writable location for the generated PDF files.
The PHP/PHPRunner part of the application passes the required values to the Node.js script. The Node.js script builds the document definition, generates the PDF and saves it to the location you specify.
1. Download Node.js and install it.
2. Inside your PHPRunner project create a folder named pdfmake.
Continue Reading "Generate PDF files using NodeJS and PDFMake"





