---
title: "Discussion on \"HTML to PDF with headless Chrome in Node.js, without Puppeteer\" | Hashnode"
description: "Discussion on \"HTML to PDF with headless Chrome in Node.js, without Puppeteer\". You can turn any HTML into a print-ready PDF with headless Chrome and about 60 lines of Node.js, no Puppeteer and no npm packages: start Chrome with a debugging port, open its WebSocket, and send two"
url: "https://hashnode.com/posts/html-to-pdf-with-headless-chrome-in-node-js-without-puppeteer/6af3a5326b332febad0276a3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [HTML to PDF with headless Chrome in Node.js, without Puppeteer](https://signops.hashnode.dev/html-to-pdf-with-headless-chrome-in-node-js-without-puppeteer?utm_source=hashnode&utm_medium=feed)

You can turn any HTML into a print-ready PDF with headless Chrome and about 60 lines of Node.js, no Puppeteer and no npm packages: start Chrome with a debugging port, open its WebSocket, and send two

6d ago · 6 min read · signops.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#pdf](https://hashnode.com/tag/pdf)

## Written by

[SignOps](https://hashnode.com/@signops)

@signops · Mumbai, India

  
[View profile](https://hashnode.com/@signops)

Push notifications and login verification, on one API. Writing about FCM, APNs, web push, passkeys and OTP.

SignOps is a developer API for push notifications to Android, iOS and the web, login approval on a trusted phone, passkeys and email OTP, billed in rupees. Website: https://signops.dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
