first commit
This commit is contained in:
25
WebRoot/node_modules/pdf/jsPDF-1.3.2/plugins/autoprint.js
generated
vendored
Normal file
25
WebRoot/node_modules/pdf/jsPDF-1.3.2/plugins/autoprint.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* jsPDF Autoprint Plugin
|
||||
*
|
||||
* Licensed under the MIT License.
|
||||
* http://opensource.org/licenses/mit-license
|
||||
*/
|
||||
|
||||
(function (jsPDFAPI) {
|
||||
'use strict';
|
||||
|
||||
jsPDFAPI.autoPrint = function () {
|
||||
'use strict'
|
||||
var refAutoPrintTag;
|
||||
|
||||
this.internal.events.subscribe('postPutResources', function () {
|
||||
refAutoPrintTag = this.internal.newObject()
|
||||
this.internal.write("<< /S/Named /Type/Action /N/Print >>", "endobj");
|
||||
});
|
||||
|
||||
this.internal.events.subscribe("putCatalog", function () {
|
||||
this.internal.write("/OpenAction " + refAutoPrintTag + " 0" + " R");
|
||||
});
|
||||
return this;
|
||||
};
|
||||
})(jsPDF.API);
|
||||
Reference in New Issue
Block a user