提交 1a3e3765 编写于 作者: H hjdhnx

优化drpy2

上级 8755104f
3.7.9
\ No newline at end of file
3.7.8
\ No newline at end of file
......@@ -591,22 +591,16 @@ const parseTags = {
});
parse = sp.join(' ').trim();
}
if(parse === 'Text'){
parse = 'body';
option = 'Text';
}else if(parse === 'Html'){
parse = 'body';
option = 'Html';
}
// print('pdfh parse后:'+parse+',option:'+option);
let result = defaultParser.pdfh(html,parse + " " + option);
// let result='';
// try {
// result = defaultParser.pdfh(html,parse + " " + option);
// }catch (e) {
// print('xxxxxxxxxxx');
// print('pdfh发生了错误');
// if(parse === 'Text'){
// parse = 'body';
// option = 'Text';
// }else if(parse === 'Html'){
// parse = 'body';
// option = 'Html';
// }
// print('pdfh parse后:'+parse+',option:'+option);
// let result = defaultParser.pdfh(html,parse + " " + option);
let result = defaultParser.pdfh(html,parse,option);
if(option&&/style/.test(option.toLowerCase())&&/url\(/.test(result)){
try {
result = result.match(/url\((.*?)\)/)[1];
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册