Skip to main content
Participant
February 15, 2021
Answered

Does Document APIs support linearized PDF?

  • February 15, 2021
  • 1 reply
  • 751 views

I want to know whether Document APIs support to show linearized PDF on Web page ? If yes, how can I use it ?

    This topic has been closed for replies.
    Correct answer Joel Geraci

    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.


    Update: PDF Embed API now supports linearized PDF. See documentation here.

    1 reply

    Joel Geraci
    Community Expert
    Community Expert
    February 15, 2021

    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?

    Participant
    February 16, 2021

    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.

    Joel Geraci
    Community Expert
    Community Expert
    February 17, 2021

    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.