1.0.0 • Published 1 year ago

renderdo v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Renderdo

npm version

Convert URLs, HTML content, and any file type to PDF using the Renderdo client library

Installation

To install the library, run the following command:

npm install renderdo

Usage

Here's an example of how to use the library:

const Renderdo = require("renderdo");

const client = new Renderdo("token-123");
const pdf = await client.convertURL("https://www.google.com/");

API

convertURL(url: string): Promise<Buffer>

Converts the URL to pdf

convertHTML(html: string): Promise<Buffer>

Converts the HTML content to pdf

convertFile(file: Buffer): Promise<Buffer>

Converts the file to pdf

License

This library is licensed under the MIT License.