提交 22778e60 编写于 作者: H hjdhnx

drpy2

上级 467baa82
无法预览此类型文件
3.9.20beta10 3.9.20beta8
\ No newline at end of file \ No newline at end of file
...@@ -576,7 +576,7 @@ const parseTags = { ...@@ -576,7 +576,7 @@ const parseTags = {
} }
parse = parse.trim(); parse = parse.trim();
let option = ''; let option = '';
print('pdfh parse前:'+parse); // print('pdfh parse前:'+parse);
if (parse.startsWith('body&&')) { if (parse.startsWith('body&&')) {
parse = parse.substr(6); parse = parse.substr(6);
} }
...@@ -598,7 +598,7 @@ const parseTags = { ...@@ -598,7 +598,7 @@ const parseTags = {
parse = 'body'; parse = 'body';
option = 'Html'; option = 'Html';
} }
print('pdfh parse后:'+parse+',option:'+option); // print('pdfh parse后:'+parse+',option:'+option);
let result = defaultParser.pdfh(html,parse + " " + option); let result = defaultParser.pdfh(html,parse + " " + option);
// let result=''; // let result='';
// try { // try {
...@@ -629,7 +629,7 @@ const parseTags = { ...@@ -629,7 +629,7 @@ const parseTags = {
return []; return [];
} }
parse = parse.trim(); parse = parse.trim();
print('pdfa=>parse前:'+parse); // print('pdfa=>parse前:'+parse);
if (parse.startsWith('body&&')) { if (parse.startsWith('body&&')) {
parse = parse.substr(6); parse = parse.substr(6);
} }
...@@ -645,10 +645,10 @@ const parseTags = { ...@@ -645,10 +645,10 @@ const parseTags = {
// if(!/&&| /.test(parse)){ // 自动补body就是jsoup的无稽之谈 // if(!/&&| /.test(parse)){ // 自动补body就是jsoup的无稽之谈
// parse = 'body '+parse; // parse = 'body '+parse;
// } // }
print('pdfa=>parse后:'+parse); // print('pdfa=>parse后:'+parse);
let result = defaultParser.pdfa(html,parse); let result = defaultParser.pdfa(html,parse);
// print(result); // print(result);
print(result.length); print(`pdfa解析${parse}=>${result.length}`);
return result; return result;
}, },
pd(html,parse,uri){ pd(html,parse,uri){
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册