In Node JS HTML to PDF conversion, Populate Images From URLs
Using axios and base64 conversion
In continuation of my previous post Convert HTML to PDF in Node JS without headless browser, I will show you how can we can fetch the images from URL, convert them into base64 string, and populate them in the HTML that is then converted into PDF.
[Read More]Convert HTML to PDF in Nodejs
Without Puppeteer, phantomjs or any other headless browser.
To convert an HTML to PDF in the backend, you usually need a headless browser like Puppeteer or phantomjs. The downside of headless browsers is that they are resource intensive. If you need to convert an HTML in Nodejs, is there a way to do so without them? The answer is yes but with a caveat: The HTML should be relatively simple, and you will only have a few options to style the document.
[Read More]Nodejs Script to Add Rows in CSV File Through Terminal
How to Run Nightmare JS On Remote Linux Server
How to Deal With Nightmare JS Zombie Electron Processes
Nightmare JS leaves in its wake zombie electron processes and memory leaks
Restart Pm2 Process Every Day Using A Node Script
A brute force yet effective way to restart scripts that need it
Trace Redirect Urls NPM Request
Clean Up MongoDB Of Old Inactive Users And Their Data With Node Js Script
Reduce Expensive Database Space By Pruning Never-To-Be-Used-Again Data
Build Queue For Processing Webhooks With Node Js And MongoDB
Manage The Flood Of Webhooks With A Database Queue
Many of the third party services we integrate in our applications use webhooks to communicate events to us. Responding to the incoming webhook with success response (status 200) is all that is required to acknowledge the receipt of the webhook. To process that webhook immediately upon receiving or entering it in a queue to be processed later is up to you.
[Read More]