Documentation for Visitor
This commit is contained in:
parent
2f4fa0c474
commit
9f9126e2c0
@ -17,10 +17,7 @@ class Visitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* pdf.OPS.beginText
|
||||||
* @param args
|
|
||||||
* @param page
|
|
||||||
* @param dependencies
|
|
||||||
*/
|
*/
|
||||||
beginText(args, page, dependencies) {
|
beginText(args, page, dependencies) {
|
||||||
if (this.debug) console.log('beginText');
|
if (this.debug) console.log('beginText');
|
||||||
@ -30,12 +27,18 @@ class Visitor {
|
|||||||
this.objectList.push(this.currentObject);
|
this.objectList.push(this.currentObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.setFont
|
||||||
|
*/
|
||||||
setFont(args, page, dependencies) {
|
setFont(args, page, dependencies) {
|
||||||
if (this.debug) console.log('setFont');
|
if (this.debug) console.log('setFont');
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
this.currentFont = this.txt.getFont(args, page, dependencies)
|
this.currentFont = this.txt.getFont(args, page, dependencies)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.showText
|
||||||
|
*/
|
||||||
showText(args, page, dependencies) {
|
showText(args, page, dependencies) {
|
||||||
if (this.debug) console.log("showText");
|
if (this.debug) console.log("showText");
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
@ -46,6 +49,9 @@ class Visitor {
|
|||||||
el2.setText(this.txt.getText(args[0], el2)+" ");
|
el2.setText(this.txt.getText(args[0], el2)+" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.showSpacedText
|
||||||
|
*/
|
||||||
showSpacedText(args, page, dependencies) {
|
showSpacedText(args, page, dependencies) {
|
||||||
if (this.debug) console.log("showSpacedText");
|
if (this.debug) console.log("showSpacedText");
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
@ -56,12 +62,18 @@ class Visitor {
|
|||||||
el2.setText(this.txt.getText(args[0], el2)+" ");
|
el2.setText(this.txt.getText(args[0], el2)+" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.endText
|
||||||
|
*/
|
||||||
endText(args, page, dependencies) {
|
endText(args, page, dependencies) {
|
||||||
if (this.debug) console.log('endText');
|
if (this.debug) console.log('endText');
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
this.currentObject = null;
|
this.currentObject = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.moveText
|
||||||
|
*/
|
||||||
moveText(args, page, dependencies) {
|
moveText(args, page, dependencies) {
|
||||||
if (this.debug) console.log('moveText');
|
if (this.debug) console.log('moveText');
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
@ -81,6 +93,9 @@ class Visitor {
|
|||||||
el.setPosition(this.currentObject.x, this.currentObject.y);
|
el.setPosition(this.currentObject.x, this.currentObject.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.setTextMatrix
|
||||||
|
*/
|
||||||
setTextMatrix(args, page, dependencies) {
|
setTextMatrix(args, page, dependencies) {
|
||||||
if (this.debug) console.log('setTextMatrix');
|
if (this.debug) console.log('setTextMatrix');
|
||||||
if (this.skip) return;
|
if (this.skip) return;
|
||||||
@ -92,6 +107,9 @@ class Visitor {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.paintFormXObjectBegin
|
||||||
|
*/
|
||||||
paintFormXObjectBegin(args, page, dependencies) {
|
paintFormXObjectBegin(args, page, dependencies) {
|
||||||
if(this.debug) console.log('paintFormXObjectBegin');
|
if(this.debug) console.log('paintFormXObjectBegin');
|
||||||
if(!this.config.paintFormXObject) {
|
if(!this.config.paintFormXObject) {
|
||||||
@ -99,6 +117,9 @@ class Visitor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pdf.OPS.paintFormXObjectEnd
|
||||||
|
*/
|
||||||
paintFormXObjectEnd(args, page, dependencies) {
|
paintFormXObjectEnd(args, page, dependencies) {
|
||||||
if(this.debug) console.log('paintFormXObjectEnd');
|
if(this.debug) console.log('paintFormXObjectEnd');
|
||||||
this.skip = false;
|
this.skip = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user