257 lines
547 KiB
Diff
257 lines
547 KiB
Diff
|
|
diff --git a/dist/jspdf.es.js b/dist/jspdf.es.js
|
|||
|
|
index a8b0b2be771a2d74a7779a296908e3721ca0a7c8..83d2b313d428a2acb9633c4c489dd7cdd9aa2ecd 100644
|
|||
|
|
--- a/dist/jspdf.es.js
|
|||
|
|
+++ b/dist/jspdf.es.js
|
|||
|
|
@@ -3453,54 +3453,9 @@ function jsPDF(options) {
|
|||
|
|
}
|
|||
|
|
return "data:application/pdf;filename=" + encodeURIComponent(options.filename) + ";base64," + dataURI;
|
|||
|
|
case "pdfobjectnewwindow":
|
|||
|
|
- if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
- var pdfObjectUrl = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js";
|
|||
|
|
- var useDefaultPdfObjectUrl = !options.pdfObjectUrl;
|
|||
|
|
- if (!useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectUrl = options.pdfObjectUrl;
|
|||
|
|
- }
|
|||
|
|
- var nW = globalObject.open();
|
|||
|
|
- if (nW !== null) {
|
|||
|
|
- var initializedPdfObjectWindow = initializeNewWindow(nW);
|
|||
|
|
- var pdfObjectScript = initializedPdfObjectWindow.document.createElement("script");
|
|||
|
|
- var scope = this;
|
|||
|
|
- pdfObjectScript.src = pdfObjectUrl;
|
|||
|
|
- if (useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectScript.integrity = "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==";
|
|||
|
|
- pdfObjectScript.crossOrigin = "anonymous";
|
|||
|
|
- }
|
|||
|
|
- pdfObjectScript.onload = function () {
|
|||
|
|
- nW.PDFObject.embed(scope.output("dataurlstring"), options);
|
|||
|
|
- };
|
|||
|
|
- initializedPdfObjectWindow.body.appendChild(pdfObjectScript);
|
|||
|
|
- }
|
|||
|
|
- return nW;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");
|
|||
|
|
- }
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
case "pdfjsnewwindow":
|
|||
|
|
- if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
- var pdfJsUrl = options.pdfJsUrl || "examples/PDF.js/web/viewer.html";
|
|||
|
|
- var PDFjsNewWindow = globalObject.open();
|
|||
|
|
- if (PDFjsNewWindow !== null) {
|
|||
|
|
- var initializedPdfJsWindow = initializeNewWindow(PDFjsNewWindow);
|
|||
|
|
- var pdfViewer = initializedPdfJsWindow.document.createElement("iframe");
|
|||
|
|
- var pdfJsQueryChar = pdfJsUrl.indexOf("?") === -1 ? "?" : "&";
|
|||
|
|
- var scope = this;
|
|||
|
|
- pdfViewer.id = "pdfViewer";
|
|||
|
|
- pdfViewer.width = "500px";
|
|||
|
|
- pdfViewer.height = "400px";
|
|||
|
|
- pdfViewer.src = pdfJsUrl + pdfJsQueryChar + "file=&downloadName=" + encodeURIComponent(options.filename);
|
|||
|
|
- pdfViewer.onload = function () {
|
|||
|
|
- PDFjsNewWindow.document.title = options.filename;
|
|||
|
|
- pdfViewer.contentWindow.PDFViewerApplication.open(scope.output("bloburl"));
|
|||
|
|
- };
|
|||
|
|
- initializedPdfJsWindow.body.appendChild(pdfViewer);
|
|||
|
|
- }
|
|||
|
|
- return PDFjsNewWindow;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error("The option pdfjsnewwindow just works in a browser-environment.");
|
|||
|
|
- }
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
case "dataurlnewwindow":
|
|||
|
|
if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
var dataURLNewWindow = globalObject.open();
|
|||
|
|
diff --git a/dist/jspdf.es.min.js b/dist/jspdf.es.min.js
|
|||
|
|
index e389e510ac68e02c1da8c89c42799947bc5a4862..e205be51e1cc61186e356329a061f1a3006fb8bc 100644
|
|||
|
|
--- a/dist/jspdf.es.min.js
|
|||
|
|
+++ b/dist/jspdf.es.min.js
|
|||
|
|
@@ -83,7 +83,7 @@ function p(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=m(r,n,i,a,e[0],7,-680876936),a
|
|||
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|||
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|||
|
|
* http://www.fpdf.org/en/script/script37.php
|
|||
|
|
- */var F={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==F.perm)throw new Error("Invalid permission: "+t);i+=F[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=S(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function C(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function j(e){if("object"!==t(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var i=Math.random().toString(35);return r[t][i]=[e,!!n],i},this.unsubscribe=function(t){for(var e in r)if(r[e][t])return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var s in r[t]){var u=r[t][s];try{u[0].apply(e,n)}catch(c){i.console&&o.error("jsPDF PubSub Error",c.message,c)}u[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function O(t){if(!(this instanceof O))return new O(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function B(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function M(t,e,r,n,i){if(!(this instanceof M))return new M(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,B.call(this,n,i)}function q(t,e,r,n,i){if(!(this instanceof q))return new q(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,B.call(this,n,i)}function E(e){var r,n="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],s=arguments[2],u=arguments[3],c=[],f=1,p=16,g="S",m=null;"object"===t(e=e||{})&&(n=e.orientation,a=e.unit||a,s=e.format||s,u=e.compress||e.compressPdf||u,null!==(m=e.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),f="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(r=e.precision),void 0!==e.floatPrecision&&(p=e.floatPrecision),g=e.defaultPathOperation||"S"),c=e.filters||(!0===u?["FlateEncode"]:c),a=a||"mm",n=(""+(n||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=j;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var x=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var A="compat",S="advanced",_=A;function P(){this.saveGraphicsState
|
|||
|
|
+ */var F={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==F.perm)throw new Error("Invalid permission: "+t);i+=F[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=S(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=k(this.encryptionKey,this.padding)}function C(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function j(e){if("object"!==t(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,e,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof e||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var i=Math.random().toString(35);return r[t][i]=[e,!!n],i},this.unsubscribe=function(t){for(var e in r)if(r[e][t])return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var s in r[t]){var u=r[t][s];try{u[0].apply(e,n)}catch(c){i.console&&o.error("jsPDF PubSub Error",c.message,c)}u[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function O(t){if(!(this instanceof O))return new O(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function B(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function M(t,e,r,n,i){if(!(this instanceof M))return new M(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,B.call(this,n,i)}function q(t,e,r,n,i){if(!(this instanceof q))return new q(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,B.call(this,n,i)}function E(e){var r,n="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],s=arguments[2],u=arguments[3],c=[],f=1,p=16,g="S",m=null;"object"===t(e=e||{})&&(n=e.orientation,a=e.unit||a,s=e.format||s,u=e.compress||e.compressPdf||u,null!==(m=e.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),f="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(r=e.precision),void 0!==e.floatPrecision&&(p=e.floatPrecision),g=e.defaultPathOperation||"S"),c=e.filters||(!0===u?["FlateEncode"]:c),a=a||"mm",n=(""+(n||"P")).toLowerCase();var v=e.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=j;var w="1.3",N=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var L={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return L};var x=y.__private__.getPageFormat=function(t){return L[t]};s=s||"a4";var A="compat",S="advanced",_=A;function P(){this.saveGraphicsState
|
|||
|
|
/**
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|||
|
|
diff --git a/dist/jspdf.node.js b/dist/jspdf.node.js
|
|||
|
|
index 6d7ea89245ee50430b86ba17358f0e4633adf682..8b19defe4c8adc711e74e67b42a7ce4413dbe4a0 100644
|
|||
|
|
--- a/dist/jspdf.node.js
|
|||
|
|
+++ b/dist/jspdf.node.js
|
|||
|
|
@@ -3946,85 +3946,9 @@ function jsPDF(options) {
|
|||
|
|
dataURI
|
|||
|
|
);
|
|||
|
|
case "pdfobjectnewwindow":
|
|||
|
|
- if (
|
|||
|
|
- Object.prototype.toString.call(globalObject) === "[object Window]"
|
|||
|
|
- ) {
|
|||
|
|
- var pdfObjectUrl =
|
|||
|
|
- "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js";
|
|||
|
|
- var useDefaultPdfObjectUrl = !options.pdfObjectUrl;
|
|||
|
|
-
|
|||
|
|
- if (!useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectUrl = options.pdfObjectUrl;
|
|||
|
|
- }
|
|||
|
|
-
|
|||
|
|
- var nW = globalObject.open();
|
|||
|
|
-
|
|||
|
|
- if (nW !== null) {
|
|||
|
|
- var initializedPdfObjectWindow = initializeNewWindow(nW);
|
|||
|
|
- var pdfObjectScript = initializedPdfObjectWindow.document.createElement(
|
|||
|
|
- "script"
|
|||
|
|
- );
|
|||
|
|
- var scope = this;
|
|||
|
|
-
|
|||
|
|
- pdfObjectScript.src = pdfObjectUrl;
|
|||
|
|
-
|
|||
|
|
- if (useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectScript.integrity =
|
|||
|
|
- "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==";
|
|||
|
|
- pdfObjectScript.crossOrigin = "anonymous";
|
|||
|
|
- }
|
|||
|
|
-
|
|||
|
|
- pdfObjectScript.onload = function() {
|
|||
|
|
- nW.PDFObject.embed(scope.output("dataurlstring"), options);
|
|||
|
|
- };
|
|||
|
|
-
|
|||
|
|
- initializedPdfObjectWindow.body.appendChild(pdfObjectScript);
|
|||
|
|
- }
|
|||
|
|
- return nW;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error(
|
|||
|
|
- "The option pdfobjectnewwindow just works in a browser-environment."
|
|||
|
|
- );
|
|||
|
|
- }
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
case "pdfjsnewwindow":
|
|||
|
|
- if (
|
|||
|
|
- Object.prototype.toString.call(globalObject) === "[object Window]"
|
|||
|
|
- ) {
|
|||
|
|
- var pdfJsUrl = options.pdfJsUrl || "examples/PDF.js/web/viewer.html";
|
|||
|
|
- var PDFjsNewWindow = globalObject.open();
|
|||
|
|
-
|
|||
|
|
- if (PDFjsNewWindow !== null) {
|
|||
|
|
- var initializedPdfJsWindow = initializeNewWindow(PDFjsNewWindow);
|
|||
|
|
- var pdfViewer = initializedPdfJsWindow.document.createElement(
|
|||
|
|
- "iframe"
|
|||
|
|
- );
|
|||
|
|
- var pdfJsQueryChar = pdfJsUrl.indexOf("?") === -1 ? "?" : "&";
|
|||
|
|
- var scope = this;
|
|||
|
|
-
|
|||
|
|
- pdfViewer.id = "pdfViewer";
|
|||
|
|
- pdfViewer.width = "500px";
|
|||
|
|
- pdfViewer.height = "400px";
|
|||
|
|
- pdfViewer.src =
|
|||
|
|
- pdfJsUrl +
|
|||
|
|
- pdfJsQueryChar +
|
|||
|
|
- "file=&downloadName=" +
|
|||
|
|
- encodeURIComponent(options.filename);
|
|||
|
|
-
|
|||
|
|
- pdfViewer.onload = function() {
|
|||
|
|
- PDFjsNewWindow.document.title = options.filename;
|
|||
|
|
- pdfViewer.contentWindow.PDFViewerApplication.open(
|
|||
|
|
- scope.output("bloburl")
|
|||
|
|
- );
|
|||
|
|
- };
|
|||
|
|
-
|
|||
|
|
- initializedPdfJsWindow.body.appendChild(pdfViewer);
|
|||
|
|
- }
|
|||
|
|
- return PDFjsNewWindow;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error(
|
|||
|
|
- "The option pdfjsnewwindow just works in a browser-environment."
|
|||
|
|
- );
|
|||
|
|
- }
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
case "dataurlnewwindow":
|
|||
|
|
if (
|
|||
|
|
Object.prototype.toString.call(globalObject) === "[object Window]"
|
|||
|
|
diff --git a/dist/jspdf.node.min.js b/dist/jspdf.node.min.js
|
|||
|
|
index 4e52bd49cbcca9d28b02c6298b58d9feec2af51c..9a1fd8de85eb712dfb6b8250d3cbde0e46d54b2e 100644
|
|||
|
|
--- a/dist/jspdf.node.min.js
|
|||
|
|
+++ b/dist/jspdf.node.min.js
|
|||
|
|
@@ -83,7 +83,7 @@ function n(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={al
|
|||
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|||
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|||
|
|
* http://www.fpdf.org/en/script/script37.php
|
|||
|
|
- */var x={print:4,modify:8,copy:16,"annot-forms":32};function A(t,e,r,n){this.v=1,this.r=2;let i=192;t.forEach(function(t){if(void 0!==x.perm)throw new Error("Invalid permission: "+t);i+=x[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";let a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=y(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=L(this.encryptionKey,this.padding)}function S(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function _(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in e[n]){var c=e[n][o];try{c[0].apply(t,i)}catch(u){r.console&&s.error("jsPDF PubSub Error",u.message,u)}c[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function P(t){if(!(this instanceof P))return new P(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function k(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function F(t,e,r,n,i){if(!(this instanceof F))return new F(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,k.call(this,n,i)}function I(t,e,r,n,i){if(!(this instanceof I))return new I(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,k.call(this,n,i)}function C(t){var e,i="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],c=arguments[2],u=arguments[3],l=[],h=1,f=16,d="S",p=null;"object"==typeof(t=t||{})&&(i=t.orientation,o=t.unit||o,c=t.format||c,u=t.compress||t.compressPdf||u,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),h="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(f=t.floatPrecision),d=t.defaultPathOperation||"S"),l=t.filters||(!0===u?["FlateEncode"]:l),o=o||"mm",i=(""+(i||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,m={},v={internal:{},__private__:{}};v.__private__.PubSub=_;var b="1.3",y=v.__private__.getPdfVersion=function(){return b};v.__private__.setPdfVersion=function(t){b=t};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};v.__private__.getPageFormats=function(){return w};var N=v.__private__.getPageFormat=function(t){return w[t]};c=c||"a4";var L="compat",x="advanced",k=L;function j(){this.saveGraphi
|
|||
|
|
+ */var x={print:4,modify:8,copy:16,"annot-forms":32};function A(t,e,r,n){this.v=1,this.r=2;let i=192;t.forEach(function(t){if(void 0!==x.perm)throw new Error("Invalid permission: "+t);i+=x[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";let a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=y(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=L(this.encryptionKey,this.padding)}function S(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function _(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in e[n]){var c=e[n][o];try{c[0].apply(t,i)}catch(u){r.console&&s.error("jsPDF PubSub Error",u.message,u)}c[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function P(t){if(!(this instanceof P))return new P(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function k(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function F(t,e,r,n,i){if(!(this instanceof F))return new F(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,k.call(this,n,i)}function I(t,e,r,n,i){if(!(this instanceof I))return new I(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,k.call(this,n,i)}function C(t){var e,i="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],c=arguments[2],u=arguments[3],l=[],h=1,f=16,d="S",p=null;"object"==typeof(t=t||{})&&(i=t.orientation,o=t.unit||o,c=t.format||c,u=t.compress||t.compressPdf||u,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),h="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(f=t.floatPrecision),d=t.defaultPathOperation||"S"),l=t.filters||(!0===u?["FlateEncode"]:l),o=o||"mm",i=(""+(i||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,m={},v={internal:{},__private__:{}};v.__private__.PubSub=_;var b="1.3",y=v.__private__.getPdfVersion=function(){return b};v.__private__.setPdfVersion=function(t){b=t};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};v.__private__.getPageFormats=function(){return w};var N=v.__private__.getPageFormat=function(t){return w[t]};c=c||"a4";var L="compat",x="advanced",k=L;function j(){this.saveGraphi
|
|||
|
|
/** @license
|
|||
|
|
* jsPDF addImage plugin
|
|||
|
|
* Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
|
|||
|
|
diff --git a/dist/jspdf.umd.js b/dist/jspdf.umd.js
|
|||
|
|
index 6a6d81067983edaa6b31d77be12dd0adf4ee33f5..5825abcb76eb2f0f4b0f26acc5c36ca538da343d 100644
|
|||
|
|
--- a/dist/jspdf.umd.js
|
|||
|
|
+++ b/dist/jspdf.umd.js
|
|||
|
|
@@ -3512,55 +3512,10 @@
|
|||
|
|
}
|
|||
|
|
return "data:application/pdf;filename=" + encodeURIComponent(options.filename) + ";base64," + dataURI;
|
|||
|
|
case "pdfobjectnewwindow":
|
|||
|
|
- if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
- var pdfObjectUrl = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js";
|
|||
|
|
- var useDefaultPdfObjectUrl = !options.pdfObjectUrl;
|
|||
|
|
- if (!useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectUrl = options.pdfObjectUrl;
|
|||
|
|
- }
|
|||
|
|
- var nW = globalObject.open();
|
|||
|
|
- if (nW !== null) {
|
|||
|
|
- var initializedPdfObjectWindow = initializeNewWindow(nW);
|
|||
|
|
- var pdfObjectScript = initializedPdfObjectWindow.document.createElement("script");
|
|||
|
|
- var scope = this;
|
|||
|
|
- pdfObjectScript.src = pdfObjectUrl;
|
|||
|
|
- if (useDefaultPdfObjectUrl) {
|
|||
|
|
- pdfObjectScript.integrity = "sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==";
|
|||
|
|
- pdfObjectScript.crossOrigin = "anonymous";
|
|||
|
|
- }
|
|||
|
|
- pdfObjectScript.onload = function () {
|
|||
|
|
- nW.PDFObject.embed(scope.output("dataurlstring"), options);
|
|||
|
|
- };
|
|||
|
|
- initializedPdfObjectWindow.body.appendChild(pdfObjectScript);
|
|||
|
|
- }
|
|||
|
|
- return nW;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");
|
|||
|
|
- }
|
|||
|
|
- case "pdfjsnewwindow":
|
|||
|
|
- if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
- var pdfJsUrl = options.pdfJsUrl || "examples/PDF.js/web/viewer.html";
|
|||
|
|
- var PDFjsNewWindow = globalObject.open();
|
|||
|
|
- if (PDFjsNewWindow !== null) {
|
|||
|
|
- var initializedPdfJsWindow = initializeNewWindow(PDFjsNewWindow);
|
|||
|
|
- var pdfViewer = initializedPdfJsWindow.document.createElement("iframe");
|
|||
|
|
- var pdfJsQueryChar = pdfJsUrl.indexOf("?") === -1 ? "?" : "&";
|
|||
|
|
- var scope = this;
|
|||
|
|
- pdfViewer.id = "pdfViewer";
|
|||
|
|
- pdfViewer.width = "500px";
|
|||
|
|
- pdfViewer.height = "400px";
|
|||
|
|
- pdfViewer.src = pdfJsUrl + pdfJsQueryChar + "file=&downloadName=" + encodeURIComponent(options.filename);
|
|||
|
|
- pdfViewer.onload = function () {
|
|||
|
|
- PDFjsNewWindow.document.title = options.filename;
|
|||
|
|
- pdfViewer.contentWindow.PDFViewerApplication.open(scope.output("bloburl"));
|
|||
|
|
- };
|
|||
|
|
- initializedPdfJsWindow.body.appendChild(pdfViewer);
|
|||
|
|
- }
|
|||
|
|
- return PDFjsNewWindow;
|
|||
|
|
- } else {
|
|||
|
|
- throw new Error("The option pdfjsnewwindow just works in a browser-environment.");
|
|||
|
|
- }
|
|||
|
|
- case "dataurlnewwindow":
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
+ case "pdfjsnewwindow":
|
|||
|
|
+ throw new Error("pdfobjectnewwindow/pdfjsnewwindow output modes are disabled in this build (removed to comply with Chrome Web Store MV3 remote-code policy).");
|
|||
|
|
+ case "dataurlnewwindow":
|
|||
|
|
if (Object.prototype.toString.call(globalObject) === "[object Window]") {
|
|||
|
|
var dataURLNewWindow = globalObject.open();
|
|||
|
|
if (dataURLNewWindow !== null) {
|
|||
|
|
diff --git a/dist/jspdf.umd.min.js b/dist/jspdf.umd.min.js
|
|||
|
|
index 0e600d49d2b2bf81dd97c1509e22d108c2ddd3b4..5976e4883e993cce3d99e0b9c28e666d61da5386 100644
|
|||
|
|
--- a/dist/jspdf.umd.min.js
|
|||
|
|
+++ b/dist/jspdf.umd.min.js
|
|||
|
|
@@ -83,7 +83,7 @@ function p(t,e){var n=t[0],r=t[1],i=t[2],a=t[3];n=m(n,r,i,a,e[0],7,-680876936),a
|
|||
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|||
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|||
|
|
* http://www.fpdf.org/en/script/script37.php
|
|||
|
|
- */var F={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==F.perm)throw new Error("Invalid permission: "+t);i+=F[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(e+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=N(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function C(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function j(t){if("object"!==r(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var o in e[n]){var h=e[n][o];try{h[0].apply(t,r)}catch(l){i.console&&s.error("jsPDF PubSub Error",l.message,l)}h[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function E(t){if(!(this instanceof E))return new E(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function B(t,e,n,r,i){if(!(this instanceof B))return new B(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,O.call(this,r,i)}function M(t,e,n,r,i){if(!(this instanceof M))return new M(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,O.call(this,r,i)}function R(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],o=arguments[2],h=arguments[3],l=[],f=1,p=16,g="S",m=null;"object"===r(t=t||{})&&(n=t.orientation,a=t.unit||a,o=t.format||o,h=t.compress||t.compressPdf||h,null!==(m=t.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),f="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(p=t.floatPrecision),g=t.defaultPathOperation||"S"),l=t.filters||(!0===h?["FlateEncode"]:l),a=a||"mm",n=(""+(n||"P")).toLowerCase();var b=t.putOnlyUsedFonts||!1,v={},w={internal:{},__private__:{}};w.__private__.PubSub=j;var y="1.3",_=w.__private__.getPdfVersion=function(){return y};w.__private__.setPdfVersion=function(t){y=t};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return x};var A=w.__private__.getPageFormat=function(t){return x[t]};o=o||"a4";var L="compat",N="advanced",S=L;function k(){this.saveGraphicsSta
|
|||
|
|
+ */var F={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach(function(t){if(void 0!==F.perm)throw new Error("Invalid permission: "+t);i+=F[t]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(e+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=N(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function C(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function j(t){if("object"!==r(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var o in e[n]){var h=e[n][o];try{h[0].apply(t,r)}catch(l){i.console&&s.error("jsPDF PubSub Error",l.message,l)}h[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function E(t){if(!(this instanceof E))return new E(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function B(t,e,n,r,i){if(!(this instanceof B))return new B(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,O.call(this,r,i)}function M(t,e,n,r,i){if(!(this instanceof M))return new M(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,O.call(this,r,i)}function R(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],o=arguments[2],h=arguments[3],l=[],f=1,p=16,g="S",m=null;"object"===r(t=t||{})&&(n=t.orientation,a=t.unit||a,o=t.format||o,h=t.compress||t.compressPdf||h,null!==(m=t.encryption||null)&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),f="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(p=t.floatPrecision),g=t.defaultPathOperation||"S"),l=t.filters||(!0===h?["FlateEncode"]:l),a=a||"mm",n=(""+(n||"P")).toLowerCase();var b=t.putOnlyUsedFonts||!1,v={},w={internal:{},__private__:{}};w.__private__.PubSub=j;var y="1.3",_=w.__private__.getPdfVersion=function(){return y};w.__private__.setPdfVersion=function(t){y=t};var x={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};w.__private__.getPageFormats=function(){return x};var A=w.__private__.getPageFormat=function(t){return x[t]};o=o||"a4";var L="compat",N="advanced",S=L;function k(){this.saveGraphicsSta
|
|||
|
|
/**
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|