Base64 is a binary-to-text encoding scheme. If the original binary bits were a PDF, then decoding the Base64 string will provide the raw bytes of the PDF.
+1 for this post, In this context, essential to keep in mind the difference between a text format such as pdf vs a text encoding scheme such as Base64.