Use Puppeteer and Nodejs to Take Screenshots and PDFs 

Use Puppeteer and Nodejs to Take Screenshots and PDFs 

Did you ever thought of a simple solution to create screenshots programmatically?

As a developer I wanted to create a simple service which creates dynamic websites and have them easily sharable via screenshots and PDF. I could have created a simple NodeJS application (like described in this article) just to solve the problem at a time but thought: “Why do I not make it a simple service?”.

The basics — a simple NodeJS application spawning a puppeteer controlled headless browser to capture screenshots and images from a website — where already in place, but now I wanted to make it a bit more versatile and consumable.

What is a bit more?

  • A simple and straightforward API
  • Param validation
  • Documentation
  • Testing
  • Security considerations
  • Docker Images
  • Simple deployment to e.g. Heroku

software nodejs scraping javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Custom Software vs Off-the-shelf Software: How to select a better one for your business?

Custom Software or Off-the-shelf software, the question in mind for many business personnel. Read this blog to get help to make right decision that will benefit your business.

Decoding Nodejs

The main goal of this blog is to explain the “Architecture of Nodejs” and to know how the Nodejs works behind the scenes. Generally, most of the server-side languages, like PHP, ASP.NET, Ruby, and including Nodejs follows multi-threaded architecture. That means for each client-side request initiates a new thread or even a new process.

Hire NodeJs Developer

Looking to build dynamic, extensively featured, and full-fledged web applications? **[Hire NodeJs Developer](https://hourlydeveloper.io/hire-dedicated-node-js-developer/ "Hire NodeJs Developer")** to create a real-time, faster, and scalable...

Software Developer vs Software Engineer — Differences: Bogus or Real?

In this article, see if there are any differences between software developers and software engineers. What you’re about to read mostly revolves around my personal thoughts, deductions, and offbeat imagination. If you have different sentiments, add them in the comment section, and let’s dispute! So, today’s topic…

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.