Which product are you using?
PDF.js Express Plus - REST API
PDF.js Express Version
N/A
Detailed description of issue
Error “Failed to fetch” received when linking a 100mb+ file.
Does your issue happen with every document, or just one?
Issue occurs when the document size > 100mb
Code snippet
let xfdfString = '' //Actual XFDF XML
const utils = new ExpressUtils({
serverKey: 'key',
clientKey: 'key'
})
utils
.setFile('http://someurl.com')
.setXFDF(xfdfString);
(async function () {
try {
const response = await utils.merge();
const mergedFile = await response.getBlob();
let file = new File([mergedFile], fileName, {lastModified: new Date().getTime(), type: mergedFile.type})
let url = window.URL.createObjectURL(file);
let tempLink = document.createElement('a');
tempLink.href = url;
tempLink.setAttribute('download', fileName);
tempLink.click();
} catch (e) {
LoaderService.setData(false)
return alert(e.message)
}
})()