To display a PDF file you have to decode or convert the base64 string first, you can use the Pi7 Base64 Tool for decoding. Otherwise, you can directly embed base64 strings into HTML documents.