SplitScreenPDF

Fork me on GitHub

Powered by hpdf.js

var helvetica = pdf.font('Helvetica'); var title = "Edit the code on the left. Go ahead. Do it."; var page = pdf.addPage(); page.setFontAndSize(helvetica, 24); var tw = page.textWidth(title); page.beginText(); page.moveTextPos( (page.width()-tw)/2, page.height()/2 ); page.showText(title); page.endText(); // For more examples, see https://manuels.github.com/hpdf.js/