pn.pane.PDF local file rendering?

I am seeing what appears to be the base64 encoding for PDFs when trying to reference local files. Here is an example that I was doing on lab. If I change to embed=True then it says there was a PDF reading error, but it starts to show the viewer. URLs seem to work fine with the PDF viewer. Any suggestions?

1 Like

Hi @petegordon

I believe its a bug and I have reported it here PDF pane shows local pdf as base64 string · Issue #5264 · holoviz/panel (

Thanks @Marc! I looked at the source, and have an idea of what is needed (assuming the base64 encoding as a datauri would work for the embed src). I’ll post on the bug issue, if I make any progress on it.

github source code

1 Like

I have too pdf fix by MarcSkovMadsen · Pull Request #5265 · holoviz/panel ( :smile:

That’s awesome! Thanks!

1 Like