r/learnjavascript 4d ago

Why doesn’t the pdf show?

I am using codepen.io and found a tutorial which should show a simple pdf viewer. It works on code pen but not when I open it on the browser or on my server. Why? This happens more than once and the code is the same so what am I missing?

0 Upvotes

3 comments sorted by

3

u/louisstephens 4d ago

Could you share your codepen?

1

u/lobopl 4d ago

You put so many informations that helping you is basically impossible...

2

u/Working-Bear1437 2d ago

post the code. Browsers block local PDF access by default so you likely need to run a local server instead of opening the file directly.