1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Don't replace Acroform dictionary if nothing has changed when saving (bug 1844572)

This commit is contained in:
Calixte Denizet 2023-07-20 17:05:52 +02:00
parent 1a69b6ad64
commit 33fdec1392
5 changed files with 38 additions and 3 deletions

View file

@ -231,7 +231,7 @@ async function updateAcroform({
warn("XFA - Cannot save it");
}
if (!needAppearances && (!hasXfa || !xfaDatasetsRef)) {
if (!needAppearances && (!hasXfa || !xfaDatasetsRef || hasXfaDatasetsEntry)) {
return;
}