Closed pr-apes closed 1 year ago
@pgundlach,
with the following layout.txt file and invoking sp --dummy --layout=layout.txt
, both embedding and SHA512 are fine (SHA512 reads 71f41f7b8fc1e8adfe1a974e711033f2a6570e324788cf16e7f0ed64c6bcd6196536d30ee1daacc97dd9100c3518fbaef23cacaead6b6fda17500e05feba7ac0
).
Also alayout.xml.zip (which is a pure XML file, but I had to add the .zip
extension to attach it here) is embedded fine and SHA512 is OK (which reads 2d19943126e2f1378f27a4b0755ed140a23f95181028a04c6706de661d92b2f7ae2ebecf5e203a065ecc8828abd09b9ca0d5fec513b471866e5e8bb5da68ded7
).
So, I guess that LuaTeX may be reading these files in plain text (which was fine for XML files), but not in binary mode (which may be required for PDF files).
Just in case it might help.
I cannot reproduce the problem on my mac, but perhaps I have fixed it. Can you try the new version 4.13.3?
Many thanks for the fix, @pgundlach.
I think #448 is also required to fix SHA functions of external files (doc
function from XPath).
At least, after fixing this, SHA512 is right on my computer.
@pgundlach,
attaching https://raw.githubusercontent.com/speedata/boxesandglue-examples/main/simpletable/result.pdf with the following source (and
sp --dummy
):Gives the following SHA512:
Also the saved attachment has the same SHA512. But the attachment contents are broken.
In fact, the SHA512 for https://raw.githubusercontent.com/speedata/boxesandglue-examples/main/simpletable/result.pdf should read:
I don't know what is wrong here.
As far as I can remember, SHA512 for external documents worked fine before.
Many thanks for your help.