Skip to content

Commit 924b931

Browse files
Ankur GuptaAnkur Gupta
authored andcommitted
Embed API samples updated with new alternate domain and resolved security vulnerability
1 parent 9609488 commit 924b931

File tree

51 files changed

+91
-90
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+91
-90
lines changed

Full Window Embed Mode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body style="margin: 0px">
1111
<div id="adobe-dc-view"></div>
12-
<script type="text/javascript" src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script>
12+
<script type="text/javascript" src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
1313
</body>
1414
</html>

Full Window Embed Mode/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () {
3131
content: {
3232
/* Location of file where it is hosted */
3333
location: {
34-
url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
34+
url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
3535
/*
3636
If the file URL requires some additional headers, then it can be passed as follows:-
3737
headers: [

In-Line Embed Mode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<!-- Customize page layout style according to your need and PDF file for best viewing experience -->
1111
<body style="margin: 100px 0 100px 200px;">
1212
<div id="adobe-dc-view" style="width: 800px; box-shadow: 1px 1px 10px 1px #dadada;"></div>
13-
<script type="text/javascript" src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script>
13+
<script type="text/javascript" src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
1414
</body>
1515
</html>

In-Line Embed Mode/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () {
3030
content: {
3131
/* Location of file where it is hosted */
3232
location: {
33-
url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
33+
url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
3434
/*
3535
If the file URL requires some additional headers, then it can be passed as follows:-
3636
header: [

Lightbox Embed Mode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<!-- Customize page layout style according to your need and PDF file for best viewing experience -->
1111
<body style="margin: 0px; background-color: #fdfdf9;">
1212
<button type="button" id="view-pdf-btn" onclick="previewFile()" style="cursor: pointer; width: 120px; padding: 10px; font-family: 'Arial'; font-size: 15px; color: #ededed; border-radius: 5px; border: 1px #404040; background-color:#1473e6; margin: 100px 0 0 80px;" disabled>View PDF</button>
13-
<script type="text/javascript" src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script>
13+
<script type="text/javascript" src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
1414
</body>
1515
</html>

Lightbox Embed Mode/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function previewFile()
3434
content: {
3535
/* Location of file where it is hosted */
3636
location: {
37-
url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
37+
url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
3838
/*
3939
If the file URL requires some additional headers, then it can be passed as follows:-
4040
header: [

More Samples/Analytics/Adobe Analytics/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body style="margin: 0px">
1111
<div id="adobe-dc-view"></div>
12-
<script type="text/javascript" src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script>
12+
<script type="text/javascript" src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
1313
</body>
1414
</html>

More Samples/Analytics/Adobe Analytics/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () {
3535
content: {
3636
/* Location of file where it is hosted */
3737
location: {
38-
url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
38+
url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
3939
/*
4040
If the file URL requires some additional headers, then it can be passed as follows:-
4141
header: [

More Samples/Analytics/Google Analytics/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
</head>
1818
<body style="margin: 0px">
1919
<div id="adobe-dc-view"></div>
20-
<script type="text/javascript" src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script>
20+
<script type="text/javascript" src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
2121
</body>
2222
</html>

More Samples/Analytics/Google Analytics/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ document.addEventListener("adobe_dc_view_sdk.ready", function () {
3535
content: {
3636
/* Location of file where it is hosted */
3737
location: {
38-
url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
38+
url: "https://documentservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
3939
/*
4040
If the file URL requires some additional headers, then it can be passed as follows:-
4141
header: [

0 commit comments

Comments
 (0)