GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Doczilla-APP/doczilla-node: Doczilla API wrapper, effortlessly create PDFs and screenshots based on your HTML.

BranchesTags
Open more actions menu

Latest commit

 

History

177 Commits
177 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.yarn/releases
.yarn/releases
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.ncurc.json
.ncurc.json
 
 
.npmignore
.npmignore
 
 
.yarnrc.yml
.yarnrc.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
eslint.config.mjs
eslint.config.mjs
 
 
generate-models.js
generate-models.js
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
update-package-json.js
update-package-json.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Doczilla Node.js Library

Installation

Install the package with:

npm install @doczilla/node
# or
yarn add @doczilla/node

Usage

The package needs to be configured with your account's API key, which is available on your Doczilla's organisation settings page.

import Doczilla from '@doczilla/node'

const doczilla = new Doczilla('doczilla-...')

const pdfBuffer = await doczilla.pdf.direct({
  page: {
    html: '<div>Your first Doczilla PDF</div>'
  }
})

Webhook signing

Doczilla can optionally sign the webhook events it sends to your endpoint, allowing you to validate that they were not sent by a third party. You can read more about it here.

Please note that you must pass the raw request body, exactly as received from Doczilla, to the verifyPayload() function; this will not work with a parsed (i.e., JSON) request body.

const event = doczilla.webhooks.verifyPayload(
  webhookRawBody,
  webhookDoczillaSignatureHeader,
  webhookSecret
);

About

Doczilla API wrapper, effortlessly create PDFs and screenshots based on your HTML.

www.doczilla.app

Topics

html-to-imagehtml-to-pdfhtml-to-pdf-apihtml2imagehtml2pdfpuppeteer

Resources

Readme
MIT license
Activity
Custom properties

Stars

8 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.