Copy link to clipboard
Copied
I want to know whether Document APIs support to show linearized PDF on Web page ? If yes, how can I use it ?
Update: PDF Embed API now supports linearized PDF. See documentation here.
Copy link to clipboard
Copied
Are you referring to Adobe Embed API? And what do you mean by support? Do you mean simply display linearized PDF or actually do a page at a time download?
Copy link to clipboard
Copied
Yes I am talking about Embed API. I mean displaying linearized PDF on web page. Currently I need to download full PDF before display first page of PDF. Can I display first page of PDF and continue to download other page so that we have other page of PDF till user read first page.
Copy link to clipboard
Copied
At this time, Embed API does not support byte streaming which is what you'd need to do page at a time download.
The full PDF needs to be downloaded. However, I have a CodePen here that shows how to postpone the display of the viewer until the first page is rendered. That way, you can have your own loading screen and the viewer isn't sitting there looking like nothing is happening.
Copy link to clipboard
Copied
Update: PDF Embed API now supports linearized PDF. See documentation here.