[英]error by using in PDFTron:' NetworkError(`Unsupported protocol ${this._url.protocol}`'
I trying to convert pdf file to pdfa3 file by using PDFTron.我尝试使用 PDFTron 将 pdf 文件转换为 pdfa3 文件。 I added current url_path.
我添加了当前的 url_path。 the my code below:
我的代码如下:
var input_url = './utils/'; var input_filename = 'test.pdf'; var output_filename = 'test_pdfa.pdf'; var convert = true; var pwd = ''; var exceptions; var max_ref_objs = 10; var url_input = input_url + input_filename; console.log('Converting input document: ' + input_filename); var pdfa = await PDFNet.PDFACompliance.createFromUrl(true, url_input, '', PDFNet.PDFACompliance.Conformance.e_Level2B, exceptions, max_ref_objs);
get error: 'NetworkError( Unsupported protocol ${this._url.protocol}
)',得到错误:'NetworkError(
Unsupported protocol ${this._url.protocol}
)',
Does anyone know what the problem is, And why doesn't it recognize the location?有谁知道问题是什么,为什么它不能识别位置?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.