如何在 Windows 上通过命令行在全屏视图中打开 pdf?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6557920/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:32:48  来源:igfitidea点击:

How to open a pdf in fullscreen view via command line on Windows?

windowspdfcommand-line

提问by hyounis

I have been able to open a pdf document through command line by using: start test.pdf

我已经能够使用以下命令通过命令行打开 pdf 文档: start test.pdf

But I would like to open it in full screen mode via command line, does anyone have any idea how to do so?

但我想通过命令行以全屏模式打开它,有人知道怎么做吗?

回答by David Steele

This should do it.

这应该这样做。

start "" /max "c:\nameofpdf.pdf"

This has the advantage that it should work if the user is using other pdf document readers that are not adobe reader. It should just use the default pdf reader on the machine.

这样做的好处是,如果用户使用其他非 adobe 阅读器的 pdf 文档阅读器,它应该可以工作。它应该只使用机器上的默认 pdf 阅读器。

回答by Shaolin072

Windows 10:

视窗 10:

explorer.exe "file:\\path\to\file.pdf"

explorer.exe "file:\\path\to\file.pdf"

回答by Beshoo

I've tested the following with Adobe Reader 10:

我已经使用 Adob​​e Reader 10 测试了以下内容:

start "" /max "C:\Program Files Xxxxx.exe" /A "pagemode=FullScreen" ".pdf" 

回答by Bashar Magzoub

Before using command line just open AcroRd32.exe/Acrobat.exeand go to Edit => Preferences => Full Screenand uncheck on Current document only. Then you can use the command line as

在使用命令行之前,只需打开AcroRd32.exe/Acrobat.exe并转到Edit => Preferences => Full Screen并取消选中仅当前文档。然后你可以使用命令行作为

start "" /max "C:\Program Files Xxxxx.exe" /A "pagemode=FullScreen" "yourfile direction and name.pdf"

回答by HMM

Go to the adobe folder, select acrord32.exeand provide it with path of filenameyou want to open. The adobe PDF viewer starts in a new window.

转到 adobe 文件夹,选择acrord32.exe并提供filename您要打开的路径。adobe PDF 查看器在新窗口中启动。

回答by Kevin Bowersox

Acrobat.exe /A "zoom=1000" "C:\example.pdf"

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Please note you need to be in your acrobat directory to open the file.

请注意,您需要在 acrobat 目录中才能打开该文件。

回答by Kevin Bowersox

You didn't mention which OS you are using. For Linux:

您没有提到您使用的是哪个操作系统。对于 Linux:

evince -f "filename"

evince -f "文件名"

OR

或者

xdg-open "filename"

xdg-打开“文件名”