Skip to content

Commit

Permalink
built versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bpampuch committed Mar 17, 2014
1 parent 085d1b9 commit 66f9d08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/pdfmake.js
Original file line number Diff line number Diff line change
Expand Up @@ -8305,7 +8305,7 @@ function PdfPrinter(fontDescriptors) {
PdfPrinter.prototype.createPdfKitDocument = function(docDefinition, options) {
options = options || {};

var pageSize = docDefinition.pageSize || { width: 595.28, height: 841.89 };
var pageSize = pageSize2widthAndHeight(docDefinition.pageSize || 'a4');
this.pdfKitDoc = new PdfKit({ size: [ pageSize.width, pageSize.height ]});
this.pdfKitDoc.info.Producer = 'pdfmake';
this.pdfKitDoc.info.Creator = 'pdfmake';
Expand Down Expand Up @@ -8336,7 +8336,7 @@ PdfPrinter.prototype.createPdfKitDocument = function(docDefinition, options) {
function pageSize2widthAndHeight(pageSize) {
if (typeof pageSize == 'string' || pageSize instanceof String) {
var size = sizes[pageSize.toUpperCase()];
if (!size) throw 'Page size ' + pageSize + ' not recognized';
if (!size) throw ('Page size ' + pageSize + ' not recognized');
return { width: size[0], height: size[1] };
}

Expand Down Expand Up @@ -8533,7 +8533,7 @@ module.exports = PdfPrinter;
PdfPrinter.prototype.fs = _dereq_('fs');

},{"./layoutBuilder":52,"./standardPageSizes":56,"fs":"x/K9gc","pdfkit":9}],56:[function(_dereq_,module,exports){
module.export = {
module.exports = {
'4A0': [4767.87, 6740.79],
'2A0': [3370.39, 4767.87],
A0: [2383.94, 3370.39],
Expand Down
Loading

0 comments on commit 66f9d08

Please sign in to comment.