diff --git a/Full Window Embed Mode/index.html b/Full Window Embed Mode/index.html index e3a8f48..6a29b5e 100755 --- a/Full Window Embed Mode/index.html +++ b/Full Window Embed Mode/index.html @@ -9,6 +9,6 @@
- + diff --git a/Full Window Embed Mode/index.js b/Full Window Embed Mode/index.js index fb86525..70b65c9 100755 --- a/Full Window Embed Mode/index.js +++ b/Full Window Embed Mode/index.js @@ -31,7 +31,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/In-Line Embed Mode/index.html b/In-Line Embed Mode/index.html index 1625947..aa27459 100755 --- a/In-Line Embed Mode/index.html +++ b/In-Line Embed Mode/index.html @@ -10,6 +10,6 @@
- + diff --git a/In-Line Embed Mode/index.js b/In-Line Embed Mode/index.js index f25bd03..7ad0020 100755 --- a/In-Line Embed Mode/index.js +++ b/In-Line Embed Mode/index.js @@ -30,7 +30,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ diff --git a/Lightbox Embed Mode/index.html b/Lightbox Embed Mode/index.html index 0971498..0804e19 100755 --- a/Lightbox Embed Mode/index.html +++ b/Lightbox Embed Mode/index.html @@ -10,6 +10,6 @@ - + diff --git a/Lightbox Embed Mode/index.js b/Lightbox Embed Mode/index.js index a2e9311..45e31e3 100755 --- a/Lightbox Embed Mode/index.js +++ b/Lightbox Embed Mode/index.js @@ -34,7 +34,7 @@ function previewFile() content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ diff --git a/More Samples/Analytics/Adobe Analytics/index.html b/More Samples/Analytics/Adobe Analytics/index.html index 91a3270..785d437 100755 --- a/More Samples/Analytics/Adobe Analytics/index.html +++ b/More Samples/Analytics/Adobe Analytics/index.html @@ -9,6 +9,6 @@
- + diff --git a/More Samples/Analytics/Adobe Analytics/index.js b/More Samples/Analytics/Adobe Analytics/index.js index fef2eda..4820341 100755 --- a/More Samples/Analytics/Adobe Analytics/index.js +++ b/More Samples/Analytics/Adobe Analytics/index.js @@ -35,7 +35,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ diff --git a/More Samples/Analytics/Google Analytics/index.html b/More Samples/Analytics/Google Analytics/index.html index 55e14b1..c216ff2 100755 --- a/More Samples/Analytics/Google Analytics/index.html +++ b/More Samples/Analytics/Google Analytics/index.html @@ -17,6 +17,6 @@
- + diff --git a/More Samples/Analytics/Google Analytics/index.js b/More Samples/Analytics/Google Analytics/index.js index 5c4e8c0..7a8c8b0 100755 --- a/More Samples/Analytics/Google Analytics/index.js +++ b/More Samples/Analytics/Google Analytics/index.js @@ -35,7 +35,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ diff --git a/More Samples/Angular Samples/src/app/samples/view-sdk.service.ts b/More Samples/Angular Samples/src/app/samples/view-sdk.service.ts index e6f04d9..f0f379d 100755 --- a/More Samples/Angular Samples/src/app/samples/view-sdk.service.ts +++ b/More Samples/Angular Samples/src/app/samples/view-sdk.service.ts @@ -49,7 +49,7 @@ export class ViewSDKClient { content: { /* Location of file where it is hosted */ location: { - url: 'https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf', + url: 'https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf', /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/More Samples/Angular Samples/src/index.html b/More Samples/Angular Samples/src/index.html index 462c0c1..732cc68 100644 --- a/More Samples/Angular Samples/src/index.html +++ b/More Samples/Angular Samples/src/index.html @@ -9,6 +9,6 @@ - + diff --git a/More Samples/Capture PDF Embed API Events/index.html b/More Samples/Capture PDF Embed API Events/index.html index e3a8f48..6a29b5e 100755 --- a/More Samples/Capture PDF Embed API Events/index.html +++ b/More Samples/Capture PDF Embed API Events/index.html @@ -9,6 +9,6 @@
- + diff --git a/More Samples/Capture PDF Embed API Events/index.js b/More Samples/Capture PDF Embed API Events/index.js index e1f3f53..2d8496e 100755 --- a/More Samples/Capture PDF Embed API Events/index.js +++ b/More Samples/Capture PDF Embed API Events/index.js @@ -25,7 +25,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.html b/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.html index 362028e..11f2aed 100755 --- a/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.html +++ b/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.html @@ -14,7 +14,7 @@

Click on any link to view the PDF file

- + diff --git a/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.js b/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.js index 21e65a4..077b155 100755 --- a/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.js +++ b/More Samples/Handle Search Engine Indexing/Auto-click PDF Link/index.js @@ -22,9 +22,9 @@ function onClick(pdf, embedMode) { /* Wait for Adobe Acrobat Services PDF Embed API to be ready. */ document.addEventListener("adobe_dc_view_sdk.ready", function () { - showFile(pdf, embedMode); + showFile(pdf, embedMode); }); - + return false; }; @@ -46,7 +46,7 @@ function showFile(pdf, embedMode) { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/" + pdf, + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/" + pdf, /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ diff --git a/More Samples/Handle Search Engine Indexing/Full Window/index.html b/More Samples/Handle Search Engine Indexing/Full Window/index.html index 22499ea..57615d6 100755 --- a/More Samples/Handle Search Engine Indexing/Full Window/index.html +++ b/More Samples/Handle Search Engine Indexing/Full Window/index.html @@ -13,7 +13,7 @@

Click on any link to view the PDF file

- + diff --git a/More Samples/PDF Annotations APIs/UI Configurations/index.js b/More Samples/PDF Annotations APIs/UI Configurations/index.js index d40dc60..b52b877 100755 --- a/More Samples/PDF Annotations APIs/UI Configurations/index.js +++ b/More Samples/PDF Annotations APIs/UI Configurations/index.js @@ -24,11 +24,11 @@ var selectedAnnotationTool; var annotationOptions = { freetext: { defaultColor: "#000000", fontSize: "12px"}, note: { defaultColor: "#fccb00"}, - highlight: { defaultColor: "#fccb00"}, - strikeout: { defaultColor: "#b80000"}, + highlight: { defaultColor: "#fccb00"}, + strikeout: { defaultColor: "#b80000"}, underline: { defaultColor: "#008b02"}, - shape: { defaultColor: "#b80000", strokeWidth: 3}, - eraser: {} + shape: { defaultColor: "#b80000", strokeWidth: 3}, + eraser: {} }; /* Wait for Adobe Acrobat Services PDF Embed API to be ready */ @@ -40,14 +40,14 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { /* Pass the div id in which PDF should be rendered */ divId: "adobe-dc-view", }); - + /* Invoke the file preview API on Adobe DC View object and return the Promise object */ var previewFilePromise = adobeDCView.previewFile({ /* Pass information on how to access the file */ content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ @@ -70,12 +70,12 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { /* Use the annotation manager interface to invoke the commenting APIs*/ previewFilePromise.then(function (adobeViewer) { - + /* Enable the annotation tools in the comments pane after PDF is rendered */ Object.keys(annotationOptions).forEach(function(annotType) { document.getElementById(annotType).disabled = false; }); - + adobeViewer.getAnnotationManager().then(function (annotManager) { annotationManager = annotManager; /* API to set UI configurations */ @@ -260,11 +260,11 @@ var selectAnnotationTool = function(annotTool) { document.getElementById("annot-color").value = annotationOptions[annotTool].defaultColor; document.getElementById("font-size").value = annotationOptions[annotTool].fontSize; document.getElementById("stroke-width").value = annotationOptions[annotTool].strokeWidth; - + document.getElementById("annot-color").style.display = "none"; document.getElementById("font-size").style.display = "none"; document.getElementById("stroke-width").style.display = "none"; - + if (annotTool !== "eraser") { document.getElementById("annot-color").style.display = "inline-block"; } @@ -276,7 +276,7 @@ var selectAnnotationTool = function(annotTool) { document.getElementById("stroke-width").style.display = "inline-block"; document.getElementById("eraser").style.display = "inline-block"; } - + if (selectedAnnotationTool !== annotTool) { selectedAnnotationTool = annotTool; startAnnotationMode(annotTool, {}); diff --git a/More Samples/PDF Annotations/index.html b/More Samples/PDF Annotations/index.html index e3a8f48..6a29b5e 100755 --- a/More Samples/PDF Annotations/index.html +++ b/More Samples/PDF Annotations/index.html @@ -9,6 +9,6 @@
- + diff --git a/More Samples/PDF Annotations/index.js b/More Samples/PDF Annotations/index.js index cfe9cb3..27e6ce0 100755 --- a/More Samples/PDF Annotations/index.js +++ b/More Samples/PDF Annotations/index.js @@ -31,7 +31,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/More Samples/React Samples/public/index.html b/More Samples/React Samples/public/index.html index 9e3f1e3..3075909 100644 --- a/More Samples/React Samples/public/index.html +++ b/More Samples/React Samples/public/index.html @@ -8,6 +8,6 @@
- + diff --git a/More Samples/React Samples/src/samples/ViewSDKClient.js b/More Samples/React Samples/src/samples/ViewSDKClient.js index 6254048..6a13758 100755 --- a/More Samples/React Samples/src/samples/ViewSDKClient.js +++ b/More Samples/React Samples/src/samples/ViewSDKClient.js @@ -46,7 +46,7 @@ class ViewSDKClient { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/More Samples/Save User Preferences/index.html b/More Samples/Save User Preferences/index.html index e3a8f48..6a29b5e 100755 --- a/More Samples/Save User Preferences/index.html +++ b/More Samples/Save User Preferences/index.html @@ -9,6 +9,6 @@
- + diff --git a/More Samples/Save User Preferences/index.js b/More Samples/Save User Preferences/index.js index 5c114bc..655f8eb 100755 --- a/More Samples/Save User Preferences/index.js +++ b/More Samples/Save User Preferences/index.js @@ -25,7 +25,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ @@ -47,7 +47,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { /* Handler to store the user preferences */ var setUserSettingHandler = function (setting) { return new Promise(function (resolve, reject) { - /* This is an example code, where the user preferences are saved in the local storage of the website domain. + /* This is an example code, where the user preferences are saved in the local storage of the website domain. Replace this with your own custom implementation of saving the preferences. */ console.log("Setting user preferences in local storage of website domain.") localStorage.setItem("USER_SETTINGS", JSON.stringify(setting)); @@ -67,7 +67,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { /* Handler to fetch the user preferences */ var getUserSettingHandler = function () { return new Promise(function (resolve, reject) { - /* This is an example code to fetch the user preferences. Replace with your own custom implementation. */ + /* This is an example code to fetch the user preferences. Replace with your own custom implementation. */ console.log("Fetching user preferences from local storage of website domain.") var userSettings = localStorage.getItem("USER_SETTINGS") || "{}"; userSettings = JSON.parse(userSettings); diff --git a/More Samples/Viewer APIs/Attachment APIs/index.html b/More Samples/Viewer APIs/Attachment APIs/index.html index afd19ea..9b41d99 100755 --- a/More Samples/Viewer APIs/Attachment APIs/index.html +++ b/More Samples/Viewer APIs/Attachment APIs/index.html @@ -18,7 +18,7 @@

Attachments

- + diff --git a/More Samples/Viewer APIs/Bookmark APIs/index.html b/More Samples/Viewer APIs/Bookmark APIs/index.html index 53bd940..2e813f7 100755 --- a/More Samples/Viewer APIs/Bookmark APIs/index.html +++ b/More Samples/Viewer APIs/Bookmark APIs/index.html @@ -18,7 +18,7 @@

Bookmarks

- + diff --git a/More Samples/Viewer APIs/Search and Zoom APIs/index.html b/More Samples/Viewer APIs/Search and Zoom APIs/index.html index 390e595..549745b 100755 --- a/More Samples/Viewer APIs/Search and Zoom APIs/index.html +++ b/More Samples/Viewer APIs/Search and Zoom APIs/index.html @@ -32,6 +32,6 @@ - + diff --git a/More Samples/Viewer APIs/Search and Zoom APIs/index.js b/More Samples/Viewer APIs/Search and Zoom APIs/index.js index 23ba992..1484b7d 100755 --- a/More Samples/Viewer APIs/Search and Zoom APIs/index.js +++ b/More Samples/Viewer APIs/Search and Zoom APIs/index.js @@ -46,7 +46,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [ @@ -67,7 +67,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { /* Use the getAPIs() interface to invoke the viewer APIs */ previewFilePromise.then(function (adobeViewer) { - + /* Enable the custom search and zoom buttons after PDF is rendered */ document.querySelectorAll(".zoom-btn").forEach(function(btn){ btn.disabled = false; @@ -77,7 +77,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { adobeViewer.getAPIs().then(function (apis) { /* API to search for a keyword in the PDF. The first search result is highlighted in the PDF. */ - viewerApis = apis; + viewerApis = apis; /* Get current page zoom level and display in the UI */ getCurrentPageZoom(); @@ -107,7 +107,7 @@ var search = function(searchTerm) { .then(function(result) { console.log("Registered callback function with onResultsUpdate(): ", result) }) - .catch(function(error) { + .catch(function(error) { console.log(error) }); }) diff --git a/More Samples/Viewer Customization/index.html b/More Samples/Viewer Customization/index.html index e3a8f48..6a29b5e 100755 --- a/More Samples/Viewer Customization/index.html +++ b/More Samples/Viewer Customization/index.html @@ -9,6 +9,6 @@
- + diff --git a/More Samples/Viewer Customization/index.js b/More Samples/Viewer Customization/index.js index 1997b75..0a29206 100755 --- a/More Samples/Viewer Customization/index.js +++ b/More Samples/Viewer Customization/index.js @@ -37,7 +37,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- headers: [ diff --git a/More Samples/Work with Local File/index.html b/More Samples/Work with Local File/index.html index 65d66d3..0fccbbc 100755 --- a/More Samples/Work with Local File/index.html +++ b/More Samples/Work with Local File/index.html @@ -14,6 +14,6 @@ - + diff --git a/Sized Container Embed Mode/index.html b/Sized Container Embed Mode/index.html index 0fee71c..06104d3 100755 --- a/Sized Container Embed Mode/index.html +++ b/Sized Container Embed Mode/index.html @@ -10,6 +10,6 @@
- + diff --git a/Sized Container Embed Mode/index.js b/Sized Container Embed Mode/index.js index 8ba2a7e..6a8fa3f 100755 --- a/Sized Container Embed Mode/index.js +++ b/Sized Container Embed Mode/index.js @@ -30,7 +30,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () { content: { /* Location of file where it is hosted */ location: { - url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", + url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf", /* If the file URL requires some additional headers, then it can be passed as follows:- header: [