pdfkit 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -1
- package/README.md +1 -1
- package/js/pdfkit.es.js +5 -5
- package/js/pdfkit.es.js.map +1 -1
- package/js/pdfkit.js +5 -5
- package/js/pdfkit.js.map +1 -1
- package/js/pdfkit.standalone.js +18070 -18072
- package/package.json +1 -1
- package/js/pdfkit.es5.js +0 -7493
- package/js/pdfkit.es5.js.map +0 -1
- package/js/pdfkit.esnext.js +0 -6782
- package/js/pdfkit.esnext.js.map +0 -1
package/js/pdfkit.js
CHANGED
|
@@ -4902,7 +4902,7 @@ var AcroFormMixin = {
|
|
|
4902
4902
|
},
|
|
4903
4903
|
_fieldDict(name, type, options = {}) {
|
|
4904
4904
|
if (!this._acroform) {
|
|
4905
|
-
throw new Error('Call document.
|
|
4905
|
+
throw new Error('Call document.initForm() method before adding form elements to document');
|
|
4906
4906
|
}
|
|
4907
4907
|
let opts = Object.assign({}, options);
|
|
4908
4908
|
if (type !== null) {
|
|
@@ -5198,7 +5198,7 @@ var AttachmentsMixin = {
|
|
|
5198
5198
|
|
|
5199
5199
|
/** check two embedded file metadata objects for equality */
|
|
5200
5200
|
function isEqual(a, b) {
|
|
5201
|
-
return a.Subtype === b.Subtype && a.Params.CheckSum.toString() === b.Params.CheckSum.toString() && a.Params.Size === b.Params.Size && a.Params.CreationDate === b.Params.CreationDate && a.Params.ModDate === b.Params.ModDate;
|
|
5201
|
+
return a.Subtype === b.Subtype && a.Params.CheckSum.toString() === b.Params.CheckSum.toString() && a.Params.Size === b.Params.Size && a.Params.CreationDate.getTime() === b.Params.CreationDate.getTime() && a.Params.ModDate.getTime() === b.Params.ModDate.getTime();
|
|
5202
5202
|
}
|
|
5203
5203
|
|
|
5204
5204
|
var PDFA = {
|
|
@@ -5214,10 +5214,10 @@ var PDFA = {
|
|
|
5214
5214
|
},
|
|
5215
5215
|
endSubset() {
|
|
5216
5216
|
this._addPdfaMetadata();
|
|
5217
|
-
this._addColorOutputIntent(
|
|
5217
|
+
this._addColorOutputIntent();
|
|
5218
5218
|
},
|
|
5219
|
-
_addColorOutputIntent(
|
|
5220
|
-
const iccProfile = fs.readFileSync(
|
|
5219
|
+
_addColorOutputIntent() {
|
|
5220
|
+
const iccProfile = fs.readFileSync(`${__dirname}/data/sRGB_IEC61966_2_1.icc`);
|
|
5221
5221
|
const colorProfileRef = this.ref({
|
|
5222
5222
|
Length: iccProfile.length,
|
|
5223
5223
|
N: 3
|