Skip to main content

Hi,

I am trying to update a data viz with new PDFs. This viz worked for years and now I'm having issues.

The PDFs show up in the Tableau Desktop view, but when I publish to Public, I just get a "google is blocking this image" message for each PDF.

Has anyone ever found a work-around or solution to this issue?

 

The PDFs are hosted on WordPress and each link begins with https:// so the http-https incompatibility isn't the problem.

 

Is There a Way to Prevent Web Browser from Blocking Linked PDFs?

7 answers
  1. Jun 3, 2025, 5:21 PM

    @Danielle Curran​ 

    Hi, Unfortunatelly the site https://www.aei.org/wp-content/uploads/2025/05/alabama.pdf has enforced the security of the website, so you can't embed the content in other webpage:

     

    "Access to fetch at 'https://www.aei.org/wp-content/uploads/2025/05/alabama.pdf' from origin 'https://public.tableau.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

     

    So, in developer words this means that you can't execute scripts or embed elements into iframes (which are used by Tableau Public).

     

    As a WORKING workaround, you may use an approach to use docs.google.com. Just add the url of the pdf after the url param:

    https://docs.google.com/gview?embedded=true&url=https://www.aei.org/wp-content/uploads/2025/05/alabama.pdf

    https://public.tableau.com/app/profile/diego7538/viz/WebPageObjectEnhanced/PDF

     

    If this post resolves the question, would you be so kind to "Select as Best"?. This will help other users find the same answer/resolution and help community keep track of answered questions. Thank you.

     

    Regards,

     

    Diego Martinez

    Tableau Visionary and Forums Ambassador

0/9000