PdfDocument is an extension of the PDFKit, a JavaScript PDF generation library.
The key differences are:
It provides API for drawing text, vector graphics and images.
Here is a typical sequence of steps when using PdfDocument:
Following is the minimal code required to generate a single page blank document:
var doc = new wijmo.pdf.PdfDocument({
ended: function (sender, args) {
wijmo.pdf.saveBlob(args.blob, "FlexGrid.pdf");
}
});
doc.end();