No i got 3 issue
-
How to show PDF for everyone “login or not”
-
Can i show PDFs from external URLs
-
Why if user click on the PDF link it’s well auto download instead of open it in the URL
No i got 3 issue
How to show PDF for everyone “login or not”
Can i show PDFs from external URLs
Why if user click on the PDF link it’s well auto download instead of open it in the URL
Can anyone who is using this component together with iframe lightboxes confirm that they still get the “expand to fullscreen arrows” above the PDF preview?
For reference, it used to work in 2023…
No. It is not available.
Rats - because it would be super helpful.
We use this TC on our site and find it very valuable. Today I created and shared a topic that includes a PDF, and it made this monstrosity: an inline PDF that can be fully navigated from an unfurl.
Is there a way to enable this in select categories? I’m creating a topic that lists a bunch of files and it’s awkward that the PDF is expanded. I’d settle for a manual way to prevent it from triggering, like inserting a special character.
Prevent what from triggering? How would you like the PDF(s) to display in the select categories?
I want a way to block PDFs from being displayed inline. Where blocked, the PDF would look like any other post attachment.
As a simple link? Or as a Onebox? Or?
All you have to do is insert a space before the name in the PDF link and you are away. This isn’t well documented (I’ve just addressed that), but I managed to get that added into the TC for the same reason a while back.
I’d prefer if it was done the same way as Oneboxes - i.e. a space in the markdown before the link, but this works well enough.
Does it happen to every PDF or just this one?
Have you tried adding your forum’s domain to allowed internal hosts
?
yes with all PDFs.
I just added it in ‘intern host’ …no improvement.
Thank you for your advice
Otherwise I just found this error message in the Chrome console:
initialize-for-pdf-preview.js:84 Refused to frame ‘blob:https://forums.ffjdr.org/79cf20bf-65ac-460f-b0b0-73c10bf85890’ because it violates the following Content Security Policy directive: “default-src ‘self’ data: https:”. Note that ‘frame-src’ was not explicitly set, so ‘default-src’ is used as a fallback.
Not allowed to load local resource: blob:https://forums.ffjdr.org/79cf20bf-65ac-460f-b0b0-73c10bf85890
Check your allowed onebox iframes
it should be *