Skip to main content
Participant
December 12, 2022
Question

PDF Embed not showing the content / text of some files

  • December 12, 2022
  • 2 replies
  • 1593 views

Hi,

 

I am using the PDF Embed API to show PDFs in the browser. It works most of the time, but for some PDF files, it doesn't show anything. For example, this file shows correctly in the browser viewer, as well as in Adobe Acrobat Reader when I download the file and open it on my computer.

 

However, using the PDF Embed API, the pages don't show any content as seen in the screenshot. When loading the file, the console outputs this log:

 

[Warning] [mobx.array] Attempt to read an array index (0) that is out of bounds (0). Please check length first. Out of bound indices will not be tracked by MobX (dc-mobx.js, line 16)
[Log] {} (index.js, line 347)
[Log] [] (0) (index.js, line 355)
[Log] @17199539m/dc-rendition-provider/2.25.2_4.122.0/AJS/wasm_acrobat.js:1:195 (rendition.js, line 2)
wasm-stub@[wasm code]
<?>.wasm-function[122]@[wasm code]
<?>.wasm-function[254]@[wasm code]
<?>.wasm-function[2047]@[wasm code]
<?>.wasm-function[869]@[wasm code]
<?>.wasm-function[3220]@[wasm code]
<?>.wasm-function[5835]@[wasm code]
<?>.wasm-function[2114]@[wasm code]
<?>.wasm-function[5553]@[wasm code]
<?>.wasm-function[6044]@[wasm code]
<?>.wasm-function[1618]@[wasm code]
<?>.wasm-function[5578]@[wasm code]
<?>.wasm-function[5885]@[wasm code]
<?>.wasm-function[1618]@[wasm code]
<?>.wasm-function[628]@[wasm code]
<?>.wasm-function[802]@[wasm code]
wasm-stub@[wasm code]
@[native code]
invoke_vii@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/wasm_acrobat.js:1:651044
wasm-stub@[wasm code]
<?>.wasm-function[390]@[wasm code]
<?>.wasm-function[2431]@[wasm code]
<?>.wasm-function[3060]@[wasm code]
<?>.wasm-function[2431]@[wasm code]
<?>.wasm-function[3060]@[wasm code]
<?>.wasm-function[2431]@[wasm code]
<?>.wasm-function[1259]@[wasm code]
<?>.wasm-function[3067]@[wasm code]
<?>.wasm-function[4335]@[wasm code]
wasm-stub@[wasm code]
@[native code]
invoke_viii@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/wasm_acrobat.js:1:650881
wasm-stub@[wasm code]
<?>.wasm-function[4250]@[wasm code]
<?>.wasm-function[8443]@[wasm code]
wasm-stub@[native code]
ccall@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/wasm_acrobat.js:1:7147
@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/wasm_acrobat.js:1:7537
@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/acrobatProxy.js:1:53986
asyncFunctionResume@[native code]
@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/acrobatProxy.js:1:56522
asyncFunctionResume@[native code]
rt@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/acrobatProxy.js:1:56218
@https://documentcloud.adobe.com/dc-rendition-provider/2.25.2_4.122.0/AJS/acrobatProxy.js:1:56485

 

Any ideas on how to fix this? I've noticed the issue happening for at least 10 files, but I can't figure out any reasons why those files in particular.

This topic has been closed for replies.

2 replies

Participant
September 5, 2023

Useful post. I'm waiting for answers. Thanks a lot. coreball

Joel Geraci
Community Expert
Community Expert
December 12, 2022

It seems to work fine in our playground. See attached image. 

Participant
December 12, 2022

Hi Joel,

 

My bad, wrong link. The PDF that has issues is this one. I tried uploading this one to the playground and it has the same issue (no content shown after page 1).