while using the WebViewer
WebViewer({
path: '/public',
initialDoc: source,
}, element);
like this gives error on console Uncaught in Promise
type InvalidPDF Message Header not found
below is the actual error message
Exception: Message: PDF header not found. The file is not a valid PDF document.
Filename:
Function: SkipHeader
Linenumber:
This is the PDFTron web team, and thank you for bringing this up!
Does this issue happen for every file you are loading, or is this a file specific issue? If it's file specific, could you please send us the document so that we can try to reproduce the issue on our end, and investigate it further.
If you'd like to keep the document private, you can submit a ticket via https://www.pdftron.com/form/request/ .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.