Skip to content

A simple tool to export ChatGPT chats to PDF, especially useful when not logged in and you want to save the output.

Notifications You must be signed in to change notification settings

getNavneet/ChatGPT-html-page2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT HTML to PDF Converter

Setup Instructions

  1. clone the project
git clone https://github.com/getNavneet/ChatGPT-html-page2pdf
  1. install dependencies
cd ChatGPT-html-page2pdf
npm install
  1. run the script with your local html file
node localToPdf.js your-file.html

Usage Guide

  1. Save the ChatGPT conversation as an HTML page
    → Press Ctrl + S (or right-click → Save as...) on the chat page.

  2. Run the script with the file path:

node index.js path/to/file.html

example if you have html page in same directory

node index.js ChatGPT.html

This will generate a PDF file in the output folder.

Requirements

  • Node.js
  • libraries (puppeteer winston)

Output

The generated PDF files will be saved in the output folder.

Use case

This script is particularly useful if you are using the chatGPT without logged in and there is no browser extension you have installed already and in this case you get difficult to save the chat and this script is created particularly for that one edge case i faced recently.

About

A simple tool to export ChatGPT chats to PDF, especially useful when not logged in and you want to save the output.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published