You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preview.js loads third-party docs pdf.min.js, pdf.worker.min.js and pdf_viewer from cdn, the link to these JS files are generated according to version inside the library.
I want to check if PDF file is previewable before uploading it to the box, using pdf.js library i can detect wether file is corrupted or protected ( in other word not previewable ).
I'm using Preview.js version 1.40.0 (https://cdn01.boxcdn.net/platform/preview/1.40.0/en-US/preview.js).
Preview.js loads third-party docs pdf.min.js, pdf.worker.min.js and pdf_viewer from cdn, the link to these JS files are generated according to version inside the library.
I want to check if PDF file is previewable before uploading it to the box, using pdf.js library i can detect wether file is corrupted or protected ( in other word not previewable ).
Does the Preview.js API provides the link to pdf.js library? or the version(1.17.0) used to generate the link?
for example: 'https://cdn01.boxcdn.net/platform/preview/third-party/doc/1.17.0/pdf.worker.min.js'
i want to use the same link that box preview library uses to reduce HTTP and to prevent loading the same library twice.
Thanks in advance.
The text was updated successfully, but these errors were encountered: