Error 18 in Adobe Reader and Acrobat #2590
-
I have my redaction code working well for PII, signatures, etc. but have encountered one problem. Redacted files open perfectly in Foxit, Chrome, and other readers but we get page errors from Adobe products. I've been digging around to find what error 18 is when loading a page, but haven't found a definitive listing of Adobe error codes. Other pages in the docs render fine, but some throw this error. It doesn't seem to be a Windows system error (18 is ERROR_NO_MORE_FILES) and all the Google hits I get for that error from Adobe are from pre-2010. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Please provide an example file with this behaviour - and also your PyMuPDF version. |
Beta Was this translation helpful? Give feedback.
-
Here's a 2-page file that exhibits the behaviour. Version is 1.22.5, so the latest AFAIK For the redaction, there are several blocks (one for signatures, another for detected PII, etc.) but they look like this. Signatures:
Another set...ignore bad indents from the paste. These handle, respectively, PII detected by a service and ITIN numbers identified via a regex.
|
Beta Was this translation helpful? Give feedback.
-
That's odd; the files are fine in Chrome or Foxit, but not Adobe. I'm
not in front of the code right now, but I've been doing intermediate
saves as pages are processed and I'm saving with both deflate = True and
garbage = 3. I'm wondering if that might be having an effect since I see
an '/incremental=True' /option for ez_save(), but I can check on Monday.
Any ideas appreciated.
Thx,
dj
…On 8/19/2023 04:19, Jorj X. McKie wrote:
Thanks for the file original. Did a test - without being able to
reproduce 😒. Here is the script and the resulting PDF - which is read
by Adobe w/o complaints.
test.zip <https://github.com/pymupdf/PyMuPDF/files/12385373/test.zip>
—
Reply to this email directly, view it on GitHub
<#2590 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUSKI7GUMILEP5EV7IAY7TXWBZKFANCNFSM6AAAAAA3NFJM2Q>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Does Adobe on your machine complain about my "x.pdf"?
Intermediate saves are not recommended, they are nothing but a waste of resources and like pulling the handbrake while driving.
Neither is incrmental save, because this leaves the body of the old file intact, i.e. all info is still there (and thus extractable by an expert), that you actually wanted to protect.
When redacting you should make sure to use garbage=3 at least (which is done in ez_save).