PDf embed API full screen mode issue
Copy link to clipboard
Copied
Hello,
I have just tested the PDF file embed via APi on a basic wordpress page.
I can't display the PDF in fullscreen.
Do you have any idea of the problem?
Copy link to clipboard
Copied
You haven't set the height of the element that you are loading the embedded view into. Also, there is no FULL_SCREEN embed mode. You might be thinking of FULL_WINDOW which will display the PDF by filling the element height and width with the viewer. Alternatively, you can use LIGHT_BOX mode to display the PDF from a click, in that case, the view will open to the full browser window and overlay your page.
Also, when the SIZED_CONTAINER embed mode is used, a full screen button become available in the view UI. Pressing it will take make the viewer display in full screen.
Copy link to clipboard
Copied
Thank you so much Joel, it's clear to me now, I was able to change the display mode following your recommendations.
Copy link to clipboard
Copied
Excellent. If it's a public facing site, I'd love to see what you've done.
Copy link to clipboard
Copied
Hi Joël, the project i'm working on is not public yet, but i can send you the link privately to check if you want to see what i have done.
just let me know.
Thanks.
Copy link to clipboard
Copied
I've tried this on a page in my Wordpress Theme and it only shows a box with the code snippet. No PDF.
I tried Full Window, Inline and Lighbox exactly the same thing.
Do I need to use a plugin for this on Wordpress?

