Copy link to clipboard
Copied
Only last week came across PDF Embed API by Adobe and I am trying to integrate this on our web application.
Have got the credentials generated for the domain
However in local, getting this warning when doing inspect:
DevTools failed to load SourceMap: Could not load content for https://documentcloud.adobe.com/view-sdk/2.10.3_1.10.0-1257dda/private/main.js.map: HTTP error: status code 403, net::ERR_HTTP_RESPONSE_CODE_FAILURE
What am I doing wrong?
Links to PDF files store in Document Cloud are links to PDF experiences, not direct links to the PDF files themselves. In order to use Embed API, you need to provide a direct link to the PDF.
Copy link to clipboard
Copied
Links to PDF files store in Document Cloud are links to PDF experiences, not direct links to the PDF files themselves. In order to use Embed API, you need to provide a direct link to the PDF.
Copy link to clipboard
Copied
I'm having this same issue. I'm new to this platform. Are you saying you can't use the Embed API for local PDFs? I'm currently using it this way and everything loads great. But.. there are 403 errors behind the scenes:
- main.js.map
- interface.js.map
Copy link to clipboard
Copied
No, that wasn't what he was saying. Joel was saying you can't use the Embed API for PDF files in Document Cloud. If you have the same issue (files in Document Cloud not working in Embed API), you have the same solution (do not use Document Cloud).
Copy link to clipboard
Copied
I'll try to be clear to hopefully get the answer I'm looking for. If I need to I can start a new thread if this is not related (I was an Adobe Community Expert so I'm familiar with the proccess...)
I can just ignore it as it works...but I always like to find out why things throw an error.
Copy link to clipboard
Copied
You aren't doing anything wrong. The javascript files for this library indicate that they have corresponding map files. These are used when the js files are the output of a compilation process, and it allows the debugger to show the original source. When the debugger requests those files, it gets a 403 error. Either Adobe has something misconfigured, or they are only for internal use.
Copy link to clipboard
Copied
if I include this files from the local instead of cloud, will the issue be fixed?
I mean could we have access to those files so we download them and add them ro the project then we see whats happening
but I think the best solution is that this api should be as package and it must be configured with app so those warning willl not appear
Copy link to clipboard
Copied
Do you have those files to include? You could just serve blank files, if not. But it's probably better to edit the js files to remove the reference to the map files.