Converting your PDF in Base64
While using the WebTrust APIs, one thing you will encounter often is the conversion of a PDF to base64.
Here are two examples of how to convert a document.pdf file into a document.b64 base64-encoded file.
Examplecertutil -encode -f .\document.pdf .\tmp.b64 && findstr /v /c:- .\tmp.txt > document.b64Otherwise, you can use an online tool like: https://base64.guru/converter/encode/pdf.