Node.js
Learn how to create your first document using the Onedoc Node.js SDK.
Onedoc is currently in private beta only mode. Contact us to get access and try our solution.
Prerequisites
To get the most out of this guide, you’ll need to:
1. Installation
If you did not have set up a NodeJS project, you can use the following command to do so:
npm init -y
Get the Onedoc Node.js SDK
2. Generate your PDF
Creat a new file generate.js
, import the React document template and generate a PDF using your ONEDOC_API_KEY
.
You are almost done ! Run the script using the following command :
node ./generate.js
4. Congratulations !
You just created your first PDF using Onedoc Node.js. You can now access your private dashboard to preview and download your PDF.
Ready to learn more ? Take a look at our SDK Reference or the different templates we offer to kickstart your next PDF generation.
5. Try it yourself !
Clone our local Dev environment !
Get started developing PDFs locally in just two command lines !