Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI All,

I am using PDFJs to view pdf documents. I am loading pdfjs in iframe.

I want to disable its Presentation mode. I checked pdfjs code and found that it has one property which we can set to disable fullscreen mode.

Property name : supportsFullscreen

But i am not able to set this property from outside.

Please let me know if any one knows how to disable PresentationMode in pdfjs.

Thanks in advance.

What I have tried:

<iframe id ='frameSrc' ng-src="{{viewController.url}}" width="100%" height="100%" supportsFullscreen="false"/>
Posted

1 solution

In the default viewer, you can call requestPresentationMode; see:

pdf.js/web/app.js

Lines 2199 to 2201 in ce17276

 function webViewerPresentationMode() { 
   PDFViewerApplication.requestPresentationMode(); 
 } 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900