Skip to main content

Usage

You can try out generating one document by simply following the Fast Track route or follow the Detailed Instruction and make your Pogodoc Account.

Fast Track

This is a Plug & Play demo to generate your first document. For more detailed instruction, follow the SDK Documentation.

1. Register

Create your Pogodoc Account.

2. Select a Plan

Select the Free Plan, with which you can generate up to 100 Documents for free or subscribe to a paid plan with more features.

3. Create a Token

Create your first Token which will be used to authenticate your usage.

4. Generate your document

Download the example HTML template and the example Data and use the code snippet below:

// TODO: generate uuid with limit of one document by address for plug and play, template and data on s3
import { generateDocument } from "@pogodoc/sdk";

(async () => {
const generatedDocument = await generateDocument(
"FAST_TRACK_USER",
"9b97b009-1768-4cd5-a217-e53d092f80b3",
"ejs",
"pdf",
template,
jsonData
);
})();

note

The template and jsonData parameters accept String values.

5. Continue generating documents!

Make your own templates and generate documents with your data. For more detailed usage check out the SDK Documentation.


All rights reserved © 2024 by Pogodoc