18
Views
6
Comments
Solved
[PDF JS + Annotations] Failed to load resource: the server responded with a status of 404 ()
pdf-js-annotations
Reactive icon
Forge asset by Raphael Ranieri
Application Type
Reactive
Service Studio Version
11.54.66 (Build 63364)
Platform Version
11.23.0 (Build 40636)

We seem to be experiencing some issues with this component on our platform lately.

even with this error smaller assets seem to load in without any issues.

for larger assets the entire page crashes and throws an OUT_OF_MEMORY error


l10n.js:199  GET https://SUB.DOMAIN.TLD/PDF_JS_Resources/web/locale/locale.properties 404 (Not Found) 

2020-11-10 23-58-16
Raphael Ranieri
 
MVP
Solution

Hey @Jan Wilfried van der Plaats ,

Just to let you know that a new version of the component was released, and should fix the problems you reported with the files not loading.

If you still have problems with that, please let me know.

Also, to work with big files, what might help is using an URL instead of a Binary if possible.

Best Regards

2024-07-16 17-36-51
Shradha Rawlani

Hello,

Check the URL that you are passing to pdf js, 

Install Asset in your environment 

Then call url with your environment domain

Regards

Shradha

2026-02-09 13-49-18
Jan-Wilfried Van der Plaats

that is the current configuration

2024-07-16 17-36-51
Shradha Rawlani

Check call of PDF Js according to sample demo OML has given for this forge component

DocURL:"/PDF_JS_Sample/sample-file.pdf"

PDF_JS_Sample.oml
2026-02-09 13-49-18
Jan-Wilfried Van der Plaats

i am not using the DocUrl to pass through the pdf. i am using the binary which is being fully fetched.
this is the error i receive when using the publicurl of the cloud assets.

2020-11-10 23-58-16
Raphael Ranieri
 
MVP

Hey @Jan Wilfried van der Plaats ,
Sorry for the delay.

Were you able to fix this issue?
I believe the problem you are having with the locale.properties file is related to the different Mime Types your server allow to download.

Check here:


However, this file shouldn't impact you opening the PDF, as it is used only for identifying the locale the component should use to show texts in a specifc language for example.

The other error you are getting when using an URL might be related to CSP policies.


If I got it right your issue is when trying to open a big file, correct?

2020-11-10 23-58-16
Raphael Ranieri
 
MVP
Solution

Hey @Jan Wilfried van der Plaats ,

Just to let you know that a new version of the component was released, and should fix the problems you reported with the files not loading.

If you still have problems with that, please let me know.

Also, to work with big files, what might help is using an URL instead of a Binary if possible.

Best Regards

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.