Skip to main content
Known Participant
October 16, 2024
Question

When using Embed API to view a LARGE 1gb PDF, get out of memory error in console

  • October 16, 2024
  • 1 reply
  • 324 views

 

File size is 1.41GB PDF created i get several errors:

 

1. Out of memory as per console snapshot below

2. Timeout or network error (but it shows 100%) 

I can also see the full 1.4 network request compelted in abot 50 seconds, so why there is a timeout I do not know, especially when it says 100% below. (but nothing shows)

Document opens normally in other PDF programs, just not using the embed api, (other docs work fine which are 300mb or so.

I have also turned on enableLinearization: true, which is suppose to start displying the pdf progressible, but in all cases, it waits untill its 100% before it shows (for other working pdfs)

What am i doing wrong here?
Chrome Latest / Edge latest both the same result.

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
October 16, 2024

First off, I'd strongly urge you to reconsider loading a 1 gig file on a web page. That's..... a heck of a lot of data. 

 

You mentioned you enable linearization, but is the PDF itself linearized? That's a requirement. We've got an API for that, https://developer.adobe.com/document-services/docs/overview/pdf-services-api/howtos/linearize-pdf/, but in theory, I believe you can do it in Acrobat Pro.