update code that reconstructs damaged files
Update the code, that reconstructs a damaged file when opening it, to the Xpdf 4.04 version.
This allows for some password encrypted PDF files to be correctly opened by Poppler.
Fixes #1447 (closed)
Fixes https://gitlab.gnome.org/GNOME/evince/-/issues/1889
Edited by Nelson Benítez León