panel
panel copied to clipboard
PDF Pane not always rendering the document
Local large PDF files cannot all be rendered, and even files of moderate size. The implementation converts the PDF to a base64-string, and uses the HTML embed tag whose src is assigned a data URL built from the base64-string. When that string is over a limit, that depends on the browser in use, the PDF pane isn't rendered at all and there's no error logged.
I'm sharing this 2Mb PDF file that cannot be rendered on Chrome when served locally but can be rendered on Firefox.
There are two posts on Discourse that seem related to this issue:
- https://discourse.holoviz.org/t/pdf-pane-pn-pane-pdf/3640/14
- https://discourse.holoviz.org/t/issue-on-displaying-pdfs/3884