Skip to content

Commit bcc64c2

Browse files
committed
Fix modify time comparison check equality embedded files
1 parent 4297040 commit bcc64c2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Fix PDF/A3 compliance of attachments
77
- Fix CIDSet generation only for PDF/A1 subset
88
- Fix missing acroform font dictionary
9+
- Fix modify time comparison check equality embedded files
910

1011
### [v0.15.1] - 2024-10-30
1112

lib/mixins/attachments.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function isEqual(a, b) {
120120
a.Params.CheckSum.toString() === b.Params.CheckSum.toString() &&
121121
a.Params.Size === b.Params.Size &&
122122
a.Params.CreationDate.getTime() === b.Params.CreationDate.getTime() &&
123-
a.Params.ModDate.getTime() === b.Params.ModDate.getTime()
123+
((a.Params.ModDate === undefined && b.Params.ModDate === undefined) ||
124+
a.Params.ModDate.getTime() === b.Params.ModDate.getTime())
124125
);
125126
}

0 commit comments

Comments
 (0)