Lines Matching refs:pageSize

2076 		var pageSize = pageSize2widthAndHeight(docDefinition.pageSize || 'a4');
2079 pageSize = { width: pageSize.height, height: pageSize.width};
2081pageSize.orientation = docDefinition.pageOrientation === 'landscape' ? docDefinition.pageOrientati…
2083 this.pdfKitDoc = new PdfKit({ size: [ pageSize.width, pageSize.height ], compress: false});
2091 pageSize,
2181 function pageSize2widthAndHeight(pageSize) {
2182 if (typeof pageSize == 'string' || pageSize instanceof String) {
2183 var size = sizes[pageSize.toUpperCase()];
2184 if (!size) throw ('Page size ' + pageSize + ' not recognized');
2188 return pageSize;
2201 if(currentPage.pageSize.orientation !== previousPageOrientation) {
13428 function LayoutBuilder(pageSize, pageMargins, imageMeasure) {
13429 this.pageSize = pageSize;
13528 new DocumentContext(this.pageSize, this.pageMargins), this.tracker);
13552 var pageSize = this.writer.context().getCurrentPage().pageSize;
13553 this.writer.beginUnbreakableBlock(pageSize.width, pageSize.height);
13572 var sizes = sizeFunction(this.writer.context().getCurrentPage().pageSize, this.pageMargins);
13581 var headerSizeFct = function(pageSize, pageMargins){
13585 width: pageSize.width,
13590 var footerSizeFct = function (pageSize, pageMargins) {
13593 y: pageSize.height - pageMargins.bottom,
13594 width: pageSize.width,
13617 size: getSize(this.pageSize, watermark, fontProvider)
13625 function getSize(pageSize, watermark, fontProvider){
13626 var width = pageSize.width;
13627 var height = pageSize.height;
13893 var markerLine = new Line(self.pageSize.width);
15950 function DocumentContext(pageSize, pageMargins) {
15956 this.availableWidth = pageSize.width - pageMargins.left - pageMargins.right;
15966 this.addPage(pageSize);
16056 …this.availableHeight = this.getCurrentPage().pageSize.height - this.pageMargins.top - this.pageMar…
16057 …this.pageSnapshot().availableWidth = this.getCurrentPage().pageSize.width - this.pageMargins.left …
16071 this.availableWidth = this.getCurrentPage().pageSize.width - this.x - this.pageMargins.right;
16075 this.availableHeight = this.getCurrentPage().pageSize.height - this.y - this.pageMargins.bottom;
16115 newPageOrientation = pageOrientation(newPageOrientation, currentPage.pageSize.orientation);
16117 if(newPageOrientation !== currentPage.pageSize.orientation) {
16120 width: currentPage.pageSize.height,
16121 height: currentPage.pageSize.width
16125 orientation: currentPage.pageSize.orientation,
16126 width: currentPage.pageSize.width,
16127 height: currentPage.pageSize.height
16157 DocumentContext.prototype.addPage = function(pageSize) {
16158 var page = { items: [], pageSize: pageSize };
16175 var pageSize = this.getCurrentPage().pageSize;
16176 var innerHeight = pageSize.height - this.pageMargins.top - this.pageMargins.bottom;
16177 var innerWidth = pageSize.width - this.pageMargins.left - this.pageMargins.right;
16181 pageOrientation: pageSize.orientation,
16321 …fragment.height = unbreakableContext.getCurrentPage().pageSize.height - unbreakableContext.pageMar…
16323 …fragment.height = this.writer.context.getCurrentPage().pageSize.height - this.writer.context.pageM…