Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.
lost-pixelPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

sample-react-pdf-api

A barebones NodeJS API that will generate PDFs with the help of React PDF.

This repo was created for the tutorial How to Generate PDFs with NodeJS and React PDF.

Getting started

Install dependencies

npm install

Start the server (for dev)

npm run serve

Send POST requests to generate PDFs

To generate a PDF, send a JSON blob matching the expected data in the body of a POST request.

Using the default template, the JSON would look like this:

{
	"companyName": "Blank Labs",
	"companyPhone": "555-555-5555",
	"companyEmail": "hello@blanklabs.dev",
	"receiptNumber": "101445",
	"datePaid": "1/4/2022",
	"paymentMethod": "Visa",
	"amount": "$29.99"
}

The PDF will be returned in the response of the POST request.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages