Documentation for Visitor
This commit is contained in:
parent
4aea804772
commit
ac54beceba
|
@ -14,9 +14,16 @@ class Visitor {
|
||||||
this.config.skip = false;
|
this.config.skip = false;
|
||||||
this.txt = new VisitorText(config, debug, this.objectList);
|
this.txt = new VisitorText(config, debug, this.objectList);
|
||||||
this.xobject = new VisitorXObject(config, debug, this.objectList);
|
this.xobject = new VisitorXObject(config, debug, this.objectList);
|
||||||
this.debug = false;
|
this.debug = config.debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parse incoming data learn more by checking visitor pattern
|
||||||
|
* @param fname - function name to be visited
|
||||||
|
* @param args - function arguments
|
||||||
|
* @param page - pdf page
|
||||||
|
* @param dependencies - loaded pdf dependencies
|
||||||
|
*/
|
||||||
visit(fname, args, page, dependencies) {
|
visit(fname, args, page, dependencies) {
|
||||||
if(FN_TEXT.indexOf(fname) > -1) {
|
if(FN_TEXT.indexOf(fname) > -1) {
|
||||||
this.txt[fname](args, page, dependencies);
|
this.txt[fname](args, page, dependencies);
|
||||||
|
|
Loading…
Reference in New Issue