Skip to content

A small repository for local PDF development with Onedoc

License

Notifications You must be signed in to change notification settings

OnedocLabs/dev-local

Repository files navigation

dev-local

Dev Local
The new way to build documents.
High-quality, unstyled components for creating PDFs.


Getting started

1. Installation

Clone the repository.

npm install

2. Set up environment

  • Copy the .env.example file to .env and fill in the required fields.
ONEDOC_API_KEY="your_api_key"
  • For a live rendering experience, split your IDE in two views, and open invoice.pdf in your right tab. You can use the PDF Viewer extension if you are using VS Code.

3. Render your first document$

npm run render

4. Have fun !

Build and render documents of your own in just one command line !

5. Remove the watermark

By default, this repository has test: true enabled in ./src/render.tsx. This will add a small watermark to your document and will prevent your account from being charged. To remove the watermark, set test: false in ./src/render.tsx.

About

A small repository for local PDF development with Onedoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •