Commit a04a308e by ramdayalmunda

managed library to work on both, node and browser

parent 4bea5711
let ADocEditor = require("./a-doc-editor-node.js")
let ADocEditor = require("./dist/assets/a-doc-editor.js")
var counter = 0
module.exports = async function(req, res){
try{
console.clear()
console.log('generating PDF', ++counter)
let editor = new ADocEditor()
console.log('generating PDF', ++counter, editor)
editor.generatePDF('temp.pdf')
res.status(200).json( { success: true, message: "Successfull" } )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment