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

What is the difference between viewer.js and main.js for the view-sdk

New Here ,
Sep 02, 2022 Sep 02, 2022

Copy link to clipboard

Copied

I see in the documentation examples with both:

https://documentcloud.adobe.com/view-sdk/viewer.js  & 

https://documentcloud.adobe.com/view-sdk/main.js

It seems like the later documentation and examples refer to the view.js.  But swapping my library from main.js to view.js doesn't work?  I do have some examples running under the main.js, but I can't get others to work.  I was just trying to swap the view sdk.

What am I missing?  Is the clientId specific to one or other?

Thanks for any help

 

TOPICS
PDF Embed API

Views

816

Translate

Translate

Report

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 ,
Sep 06, 2022 Sep 06, 2022

Copy link to clipboard

Copied

A few weeks we released an update to PDF Embed, what we are calling the 'modern' viewer. We described this here:

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

 

In theory, you can just switch, so if you can share an example where it didn't work, I can take a look.

Votes

Translate

Translate

Report

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
New Here ,
Nov 14, 2022 Nov 14, 2022

Copy link to clipboard

Copied

Hello,

The last sentence in the description irritates me a little.

"Developers using the main.js script in their websites will continue to see the legacy PDF viewer and all PDF Embed API functionality would be available to them in the legacy viewer."

Does that mean that if I use the main.js, I don't have to switch to the viewer.js? Or does it mean that the functions remain in the legacy viewer until the changeover, but that I should change over anyway?

Thx 😉

Votes

Translate

Translate

Report

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 ,
Nov 14, 2022 Nov 14, 2022

Copy link to clipboard

Copied

LATEST

Basically - the old viewer works, but is not going to get updates going further. You don't have to switch this second, but you want to get to it.

Votes

Translate

Translate

Report

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