Skip to content

Commit

Permalink
Use minified version of PDFObject
Browse files Browse the repository at this point in the history
  • Loading branch information
pipwerks committed Feb 14, 2024
1 parent ebfe338 commit 7a0663c
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docs/public/examples/apostrophe-in-filename.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying a URL containing an apostrophe</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/this one's fun.pdf", "#my-pdf");
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/base64.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Embedding a PDF encoded as a Base64 string</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let b64 = "data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1Jlc291cmNlcyAyIDAgUgovQ29udGVudHMgNCAwIFI+PgplbmRvYmoKNCAwIG9iago8PC9GaWx0ZXIgL0ZsYXRlRGVjb2RlIC9MZW5ndGggMTAxPj4Kc3RyZWFtCnicFcytDoAgGEbhzlW8UQsCU5mVqcFk+G6AKf4F2YDJ7TvS2Z5wFBYmeKeRmSE0s4RUXAjQgYkKyaHlWkMPXQntqOi6I9ZxRrYRm38/F5LbkTwsjI2ubxFTuN+T16CnbH7L/xqsCmVuZHN0cmVhbQplbmRvYmoKMSAwIG9iago8PC9UeXBlIC9QYWdlcwovS2lkcyBbMyAwIFIgXQovQ291bnQgMQovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQo+PgplbmRvYmoKNSAwIG9iago8PC9UeXBlIC9Gb250Ci9CYXNlRm9udCAvSGVsdmV0aWNhCi9TdWJ0eXBlIC9UeXBlMQovRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZwo+PgplbmRvYmoKMiAwIG9iago8PAovUHJvY1NldCBbL1BERiAvVGV4dCAvSW1hZ2VCIC9JbWFnZUMgL0ltYWdlSV0KL0ZvbnQgPDwKL0YxIDUgMCBSCj4+Ci9YT2JqZWN0IDw8Cj4+Cj4+CmVuZG9iago2IDAgb2JqCjw8Ci9Qcm9kdWNlciAoUHlGUERGIDEuNy4yIGh0dHA6Ly9weWZwZGYuZ29vZ2xlY29kZS5jb20vKQovQ3JlYXRpb25EYXRlIChEOjIwMjQwMjA4MDIyMTIzKQo+PgplbmRvYmoKNyAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMSAwIFIKL09wZW5BY3Rpb24gWzMgMCBSIC9GaXRIIG51bGxdCi9QYWdlTGF5b3V0IC9PbmVDb2x1bW4KPj4KZW5kb2JqCnhyZWYKMCA4CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDI1OCAwMDAwMCBuIAowMDAwMDAwNDQxIDAwMDAwIG4gCjAwMDAwMDAwMDkgMDAwMDAgbiAKMDAwMDAwMDA4NyAwMDAwMCBuIAowMDAwMDAwMzQ1IDAwMDAwIG4gCjAwMDAwMDA1NDUgMDAwMDAgbiAKMDAwMDAwMDY1NCAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDgKL1Jvb3QgNyAwIFIKL0luZm8gNiAwIFIKPj4Kc3RhcnR4cmVmCjc1NwolJUVPRgo=";

Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>PDFObject Example: Basic embed</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>PDFObject.embed("/pdf/sample.pdf", "#my-pdf");</script>

</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/conditional-js-advanced.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed (on
<div id="results"></div>
<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
document.querySelector(".embed-link").addEventListener("click", function (e){

Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/conditional-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1>PDFObject Example: Invoking conditional JavaScript upon successful embed</h1

<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
pdfOpenParams: {
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/custom-attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2>Reserved token</h2>
<p>Trying to use reserved token for the attribute key. The embed should work, and the custom attribute should be ignored.</p>
<div id="pdf-reservedtoken"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
customAttribute: { key: "foo", value: "bar" }
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/declining-a-fallback.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>PDFObject Example: Declining to provide a fallback</h1>

<p>If your browser doesn't support inline PDFs, you will see nothing except this message and the page title.</p>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { fallbackLink: false });
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>PDFObject Example: Detection using navigator.pdfViewerEnabled</h1>

<div id="results"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let status = (navigator.pdfViewerEnabled) ? "supports" : "does not support";
let el = document.querySelector("#results");
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/detection.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>PDFObject Example: Detection of PDF support</h1>

<div id="results"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let status = (PDFObject.supportsPDFs) ? "supports" : "does not support";
let el = document.querySelector("#results");
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/embed-multiple-PDFs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>PDFObject Example: Embed two PDFs on one HTML page</h1>
<div id="pdf1"></div>
<div id="pdf2"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf1", {
page: 2,
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/full-browser-default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>

<body>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf");
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/full-browser-explicit-pdfparams.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>

<body>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", document.body, {
pdfOpenParams: {
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/full-browser-explicit.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>

<body>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", document.body);
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/google.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>PDFObject Example: Using Google Docs Viewer as a fallback</h1>
</ul>
<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>

let url = "https://pdfobject.com/pdf/sample.pdf";
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/omit-inline-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>PDFObject Example: Embedding a PDF, with omitInlineStyles option set to true

<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("https://pdfobject.com/pdf/sample-3pp.pdf", "#pdf", { omitInlineStyles: true, id: "myID" });
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-element-jquery-styled.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>PDFObject Example: Simple embed, passing jQuery element, with CSS styles app
<div id="my-pdf"></div>

<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let $container = $("#my-pdf");
PDFObject.embed("/pdf/sample-3pp.pdf", $container);
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-element-jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>PDFObject Example: Simple embed, passing jQuery element</h1>
<div id="my-pdf"></div>

<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let $container = $("#my-pdf");
PDFObject.embed("/pdf/sample-3pp.pdf", $container);
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-element-styled.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed passing vanilla HTML element, with CSS style

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let container = document.querySelector("#my-pdf");
PDFObject.embed("/pdf/sample-3pp.pdf", container);
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>PDFObject Example: Simple embed, passing vanilla HTML element</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let container = document.querySelector("#my-pdf");
PDFObject.embed("/pdf/sample-3pp.pdf", container);
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-selector-styled.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed using CSS selector, with CSS styling applied

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf");
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/passing-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Simple embed using CSS selector</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf");
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/pdf-open-params.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ <h1>PDFObject Example: PDF Open Parameters</h1>
</div>
</div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>

let last_embedded = "";
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/pdfjs-forced-with-querystring.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>PDFObject Example: PDF.js (forced) with querystring</h1>

<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let myPDF = PDFObject.embed("/pdf/file.php?item=sample-3pp", "#pdf", {
page: 2,
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/pdfjs-forced.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1>PDFObject Example: Using PDF.js to display the PDF</h1>
<div id="results"></div>
<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
page: 2,
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/pdfjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>PDFObject Example: PDF.js fallback</h1>
<div id="results"></div>
<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let myPDF = PDFObject.embed("/pdf/sample-3pp.pdf", "#pdf", {
pdfOpenParams: {
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/querystring-URL-with-params.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying PDF URL containing querystring, with PDF Open

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("https://pwrk.us/sample-pdf/?file=pdf", "#my-pdf", {
page: 2,
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/querystring-URL.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>PDFObject Example: Specifying PDF URL containing querystring</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("https://pwrk.us/sample-pdf/?file=pdf", "#my-pdf");
</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/replace-PDF-with-second-PDF.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1>PDFObject Example: Replace one PDF with another</h1>
<div id="results"></div>
<div id="pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let clickHandler = function (e){

Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/setting-title.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>PDFObject Example: Setting the iframe's title attribute</h1>

<div id="my-pdf"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", {
title: "Sample PDF embed for demonstrating PDFObject"
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/specifying-custom-fallback-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<h1>PDFObject Example: Specifying custom fallback link</h1>
<p>To see the fallback message, view this page on a mobile device or any other system that does not support inline PDFs.</p>
<div id="my-pdf"></div>
<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
let customFallback = "This is a custom fallback link that displays when the PDF can't be embedded. The PDF's URL can be embedded anywhere in this string using the shortcode &lsqb;url&rsqb;. <a href='[url]'>You can make a link</a> or display it as text like this: [url].";
PDFObject.embed("/pdf/sample-3pp.pdf", "#my-pdf", { fallbackLink: customFallback });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>PDFObject Example: Specifying page number while also displaying thumbnails</

<div id="my-container"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
var options = {
page: "2",
Expand Down
2 changes: 1 addition & 1 deletion docs/public/examples/specifying-page-number.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>PDFObject Example: Specifying page number</h1>

<div id="my-container"></div>

<script src="https://unpkg.com/[email protected]/pdfobject.js"></script>
<script src="https://unpkg.com/[email protected]/pdfobject.min.js"></script>
<script>
var options = {
page: "2"
Expand Down

0 comments on commit 7a0663c

Please sign in to comment.