You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, @base64d can only decode to utf-8 strings, not binary data.
Note that even with gojq that can preserve non-utf8 data as long as you don't perform string operatorions on it, you should use gojq -jR @base64d <b64 >decoded not -rR or it will add an extra newline (0x0a byte) at the end of the file; for PDFs evidently that is fine though.
The good news is that replacing
jq
bygojq
results in success.Here's an example file:
Using jq:
Replacing jq by gojq in the above line results in a file that Adobe Acrobat opens successfully.
Further details:
The text was updated successfully, but these errors were encountered: