Is the PDF viewer component broken? I have yet to find a single PDF that works and doesn't say "PDF could not be loaded"

Basically the subject, why does this never work?

The PDF is literally a single page Word document that I saved as PDF. I have tried quotes that I have, collateral from marketing, random PDFs downloaded online, etc. It shows that NASA sample or whatever one, but I have never found a PDF that actually works here.

Is there another way to embed a PDF file or is this it? Even this sample doesn't work, it's literally called "a simple pdf sample" and it's only text This one also, it's three words! neither work they all just say PDF could not be displayed.

1 Like

Hi @lmonroe I am seeing CORS errors with the provided examples

To avoid these errors, I recommend putting the pdf url in a RestQuery & referencing the returned base64 in your pdf component:


:disappointed: This comes up pretty often, so I'm requesting to get this added to our docs!

I am honestly having the exact same problem. i have even gone ahead to remove all possible permission requirements that might bbe restricting file access on firebase. Yet, the famous pdf could not be loaded# still stays unmoved!! Please see my screenshots

@Tess , thank you for your suggestion to use the RESTQuery option. but, how do i then make the link dynamic so that depending on what row is choosen from my table, a different file is read?

Like now, how do i make the GET filed within the REST query dynamic?

Hi @Samuel_me Thanks for reaching out! You can put {{}} in the rest query url field. It would look something like {{table1.selectedRow.gcsLink}} where gcsLink is replaced with the column name for your table: