In some case the annotation using saveIncr breaks the signature of the original document #2068
-
Describe the bug (mandatory)
To Reproduce (mandatory)
In some other cases (with some others document/signature) it works fine. Expected behavior (optional)The signature is not broken, acrobat validate the signature like it validates it on the original document. ScreenshotsYour configuration (mandatory)
For example, the output of
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments 5 replies
-
As you stated yourself, this situation occurs intermittently.
|
Beta Was this translation helpful? Give feedback.
-
Hi thank you for your answer. Can I send it on your email define on github? |
Beta Was this translation helpful? Give feedback.
-
Sure, but please be aware that I may have to share the file with colleagues from Artifex. |
Beta Was this translation helpful? Give feedback.
-
Yes you can share it. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
I have reviewed the file and made a few tests. Here are the findings:
So, the reason for loosing the signed status must be, that there happens some check whether the file has been changed at all. I am not sure which part of the signature field specification is responsible for this type of check:
|
Beta Was this translation helpful? Give feedback.
-
As per the message ("byte range invalid"): |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the time spent on that. I will have a check with the person in charge of the signature... |
Beta Was this translation helpful? Give feedback.
-
There is something strange because I have done the same thing with pdftron library using a test licence and also pdfbox (Java) and the signature was still valid. |
Beta Was this translation helpful? Give feedback.
-
To see what actually has been happening when using incremental save, I compared the before / after versions of your nice example file with a "diff" generating program. This clearly proved that the changes exclusively happened by appending data after the original's final |
Beta Was this translation helpful? Give feedback.
-
Thank you I want to do the same as you and then compare with the results provided by others tools llike pdftron of pdfbox in order may be to give the right information to the signature server provider or to you. I understand what you are saying but I do not understand why with other tools it works fine in Acrobat and not when I use pymupdf. Best regards, |
Beta Was this translation helpful? Give feedback.
-
I have done a less of the files and copy and past the final part after the %%EOF and I got these files. |
Beta Was this translation helpful? Give feedback.
-
Let us convert this to a "Discussions" item first. |
Beta Was this translation helpful? Give feedback.
-
Sorry to have to ask you again:
Thank you, and again sorry about that. |
Beta Was this translation helpful? Give feedback.
-
Hi, good news: the problem has been identified and will be fixed in the first patch version of next year! |
Beta Was this translation helpful? Give feedback.
-
Great thank you
Le ven. 23 déc. 2022, 19:03, Jorj X. McKie ***@***.***> a
écrit :
… Hi, good news: the problem has been identified and will be fixed in the
first patch version of next year!
—
Reply to this email directly, view it on GitHub
<#2068 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJMVS6JOSI5WPZ6ZSNXVTTWOXSNPANCNFSM6AAAAAASF67EJE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Interesting so it is available in the snapshot version? Or the only way is
it wait for the release?
Le ven. 23 déc. 2022, 20:05, Jorj X. McKie ***@***.***> a
écrit :
… It was hard to find:
There was no actual error and the Adobe message on wrong /ByteRange was
wrong - the byte range has never been touched.
It was easy to fix:
There are two ways how to code the XREF table - in straight ASCII format
or compressed as a stream.
When appending incremental changes, the relevant new XREF table piece must
not be a stream, if the preceding XREF table was no stream either.
I have never seen this being documented!
—
Reply to this email directly, view it on GitHub
<#2068 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJMVSYKJO3GWVVFQS3CY6LWOXZYHANCNFSM6AAAAAASF67EJE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello
Thanks
As you like but I can test only on macos (apple cpu). There is no urgency.
Le sam. 24 déc. 2022, 03:13, Jorj X. McKie ***@***.***> a
écrit :
… Next release actually, but I can make a 3.10 preliminary wheel for Ubuntu
22.04 if you want to test something.
—
Reply to this email directly, view it on GitHub
<#2068 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJMVS4O33RSK2WNGSUNXPLWOZL4JANCNFSM6AAAAAASF67EJE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, do you know when the new official version will be released?
Le sam. 24 déc. 2022 à 11:30, Jorj X. McKie ***@***.***> a
écrit :
… Sorry - have no MAC machine, so you will have to wait for the official
version early next year.
—
Reply to this email directly, view it on GitHub
<#2068 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJMVSZ7YHNCYUL4RQVET5TWO3GFXANCNFSM6AAAAAASF67EJE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Let us convert this to a "Discussions" item first.
Then please attach the complete PDF of the pdfbox output, and I will compare that with the pymupdf output pdf.
Thanks.