Skip to main content
Participating Frequently
November 16, 2022
Answered

Embed API Legacy view will deprecate - transition to new modern PDF Viewer

  • November 16, 2022
  • 3 replies
  • 2505 views

Hi Adobe Community,

I received an email that the old Embed PDF API will be decprecated, which is what I am running currently. Adobe is warning that I need to transtition to the new modern PDF viewer. I don't know where to start. Does anyone know how to update? 

 

Thanks,

Roland

 

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

    Read this first https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/modernviewer/

    Then just change the filename that you load the script from to viewer.js instead of main.js

     

    <script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script> 

    3 replies

    LynnUrb
    Participant
    January 27, 2023

    I'm not using main.js but viewer.js so why does Adobe email me warning me to switch?

    Joel Geraci
    Community Expert
    Community Expert
    January 27, 2023

    I have no insight as to when those emails get sent or why. If you've already switched, I think you can safely ignore the emails. I certainly am.

    Participant
    January 29, 2023

    Hi Joel,

     

    May I ask if you can provide me guidance step wise so that I can transition to new modern pdf viewer? 

     

    Thanks.

    Participant
    December 12, 2022

    It worked but now it has the boarders things. We want to be something like this instead

    Been researching on it for hours and I'm not good with codes




    Joel Geraci
    Community Expert
    Community Expert
    December 12, 2022

    Look at the various embed modes to see which will work best for you.

    Participant
    December 12, 2022

    With this code 

    I can only come up with this

    Based on the link you shared, I dont see anything that can remove the page number the courser thing and others I don't know the name of, badly need help lol

    Joel GeraciCorrect answer
    Adobe Employee
    November 16, 2022

    Read this first https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/modernviewer/

    Then just change the filename that you load the script from to viewer.js instead of main.js

     

    <script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script> 

    Participating Frequently
    November 16, 2022

    Hi Joel, Thank you so so much. This worked!

     

    Roland