Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Embeddable version of Pdf Template Builder without external dependencies

License

Notifications You must be signed in to change notification settings

by-pinja/pdf-template-builder-embeddable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this

This is the embeddable version of the Pdf Template Builder

Usage

Add the required js in your app.

<script type="text/javascript" src="path/to/pdf-template-builder.min.js"></script> 

Add target element to the DOM.

<div id="target"></div>

Initialize and configure builder.

// 1. Create instance
const builder = new PdfTemplateBuilder();

// 2. Render to the target DOM element
builder.render(document.getElementById('target'));

// 3. Configure
builder.configure({
  language: 'en',
  schema: [],
  onSave: () => {},
  onPreview: () => {}
});

// 4. Optional. Import your already existing template?
builder.importTemplate({...});

Development

There is no much to develop, but you can if you really want.

# start dev server
npm start

# building the minified js under dist
npm run build

About

Embeddable version of Pdf Template Builder without external dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published