I am using pdfjs-dist module to display pdf file in a modal popup. I can apply some features: change/ goto page, zoom, etc ...
I want to view pdf file in fullscreen or presentation mode just like the demo of pdfjs:
I have looked into pdfjs source code but I do not know how to enter fullscreen/presentation mode.
<iframe height='100%' width='100%' scrolling='no' allowfullscreen webkitallowfullscreen src='./viewer.html?file=./PDFFile.PDF'></iframe>
allowfullscreen
和webkitallowfullscreen
为演示模式做了一些技巧。
You can simply add page number to open pdf in full-screen in separate tab. For Example
<a href="your URL#page=2">Open yourpdf.pdf with PDF.js in new tab</a>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.