asgar-printer
v1.0.6
Published
asgar-printer
Downloads
3
Readme
Example
Example.js
import { Printer } from "./index";
// import { Printer } from "asgar-printer";
const pdf_details={
name:"Asgar Aliyev",
skills:[
{
name:"HTML"
},
{
name:"CSS"
}
]
}
const printer = new Printer({url: "/public/my-pdf.html"});
await printer.init();
await printer.print(pdf_details);
/public/my-pdf.html
Document
Salam {{name}}
{{#each skills}}
{{name}}
{{/each}}