Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Oct 16, 2024 Oct 16, 2024

 

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

 

1. Out of memory as per console snapshot below

RishiUttamHK_0-1729065717977.png

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

RishiUttamHK_1-1729065758704.png

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)

RishiUttamHK_2-1729065769358.png

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.

TOPICS
PDF Embed API
204
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 16, 2024 Oct 16, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources