How to open a PDF file by using Foxit/Adobe in full screen mode?

≡放荡痞女 提交于 2019-12-11 14:07:20

问题


I need from my C# application open a PDF file by using Foxit Reader or Adobe Reader in full screen mode. Manually, I do it typing F11 in Foxit Reader and CTRL+L on Adobe Reader. This changes the current file view to "full screen" mode. But programmatically, I have no idea how to do this! Thanks in advance.

as I'm opening the pdf file:

Process.Start(filename);

回答1:


You can use SendKeys to send F11 or CTRL+L to the PDF application after you run it.

Alternatively, Foxit or Adobe may support commandline parameters to open in fullscreen mode. If you don't mind changing to SumatraPDF, I do know you can pass -presentation $file.pdf - opens a PDF file in presentation (full-screen) mode. See the manual for details.




回答2:


Also, in addition to using the other solutions, you could open a Windows Form (or WPF Window) with a WebBrowser control and point it at the PDF file. The PDF file will open in the web browser control. Just set the Windows Form Properties to be Maximized with no border, and that should be the key to getting what you want without messing with Process.



来源:https://stackoverflow.com/questions/10891141/how-to-open-a-pdf-file-by-using-foxit-adobe-in-full-screen-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!