pdf can't be shown properly once in the page

QuestionsCategory: PDF Light Viewerpdf can't be shown properly once in the page
AvatarRiccardo Gusti asked 9 months ago

Hello, 
I have imported  a pdf and it shows and works correctly in the import page but when pasted in a page and has to be displayed to the public it doesn’t work. Here what I mean, scroll at the and of the page and you’ll see that the pdf viewer just show a couple of pages and then it stop. But if you pass on the pages with the pointer, it shows the enlarged page. Do you have any Ideas why? Also if you enable “adaptive” in the Flipbook page layout the pdf comes out cut. 
If you need any other information just ask! Thanks very much for your help! 
Kind regards
Riccardo

1 Answers
supportsupport answered 4 months ago

Hello Ricardo,
Sorry for the late reply.
It seems like some javascript lazy-loading plugin ( https://www.collectibledry.com/modules/8f0f0744/assets/css/jquery.lazyloadxt.fadein.css ) is trying to load the images of PDF widget (I’ve noticed additional css classes added – lazy lazy-hidden)
You can make images visible by adding the following css rules to your site:
.pdf-light-viewer .lazy-hidden {
  opacity: 1;
}
If you are not familiar with css you can start in the docs here (section Custom CSS) – https://codex.wordpress.org/CSS
Regarding adaptive, probably some plugin css rules were overridden by your theme styles or styles of other plugin. It’s hard to say without seeing it.