Is Base64 encoded PDF?

This way the PDF file gets send, not its base64 encoding . PDF files contain typically binary data. In XSLT only http://www.w3.org/TR/REC-xml/ s can be processed. This is the reason why you cannot have the PDF file itself in XLST, only its base64 encoding.

Read more

How do I decode a Base64 string?

To decode with base64 you need to use the –decode flag . With encoded string, you can pipe an echo command into base64 as you did to encode it. Using the example encoding shown above, let’s decode it back into its original form. Provided your encoding was not corrupted the output should be your original string.

Read more