I have a PDF base64 encode data URI.
eg:
return <object data="data:application/pdf;base64,JVBERi0xLjMKJf////8KOCAwIG9...VmCjI0MTU4OAolJUVPRgo=" type="application/pdf"></object>
I am able to embed it in the page without any problem. However, by default browsers include a toolbar in the PDF.
It seems like the only way to disable this toolbar is to include some hash parameters at the end of the url.
eg.
<object data="path/to/file.pdf#toolbar=0&navpanes=0&scrollbar=0" type="application/pdf"></object>
Which works fine if the PDF is accessed through a relative path or URL, but I cant figure out a way to make this work with a data URI.
Is there any way to include these hash parameters at the end of a URI?
Or does anyone know some way to hide this toolbar some other way?
Any help is greatly appreciated. Thanks in advance. :)