By Jonathan Thompson on Thursday, 01 March 2018
Posted in General
Likes 0
Views 483
Votes 0
Hello,

I added a pdf to an easyblog post. On desktop the preview worked normally. On iphone there was a button to download the pdf that worked as expected. On iPad there was an image of the 1st page of the pdf but no ability to either scroll or download the document. I have deleted the pdf from the post at this point. Perhaps you can test on your end at some point to see if this is a bug?? I checked in Safari and Firefox on iPad with same result.

Thanks

Jonathan
Hello,

The PDF embedded in HTML was render by browser itself, some browsers will have nice toolbar and scrollbar on it. We can't control the pdf preview application.



For your case, maybe you can insert css codes below to show the pdf download buttons for iPad.
[gist type="php"]
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
#eb .eb-pdf-viewer .pdf-viewer-button {display: block;}
}

[/gist]
·
Thursday, 01 March 2018 11:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks! Looks great.
·
Thursday, 01 March 2018 20:52
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Jonathan
·
Thursday, 01 March 2018 22:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post