[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

orbiting/pdf

Repository files navigation

Render Mdast as PDF

Implemented with react-pdf.

yarn
yarn run dev

open http://localhost:3007/example

Env

API_URL=https://api.republik.ch/graphql
FRONTEND_BASE_URL=https://www.republik.ch
ASSETS_SERVER_BASE_URL=https://cdn.republik.space

You can create a local .env file which will be auto loaded.

Documents sequencer fetcher

This project includes a script that runs a batch of PDF generation processes. To run it, provide your session cookie as API_COOKIE:

FIRST=500 CONCURRENCY=1 API_COOKIE=connect.sid=s%... node test/renderToFile.js

With DOTENV=1 you can also use your .env file.

About

Rendering Republik articles with ReactPDF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published