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

28

Likes

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

LATEST

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.

Likes

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