I have been able to open a pdf document through command line by using: 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?
[edit] I need a windows command...
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.
Windows 10:
explorer.exe "file:\\path\to\file.pdf"
I've tested the following with Adobe Reader 10:
start "" /max "C:\Program Files Xxxxx.exe" /A "pagemode=FullScreen" ".pdf"
Acrobat.exe /A "zoom=1000" "C:\example.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.
You didn't mention which OS you are using. For Linux:
evince -f "filename"
OR
xdg-open "filename"
Before using command line just open AcroRd32.exe/Acrobat.exe and go to Edit => Preferences => Full Screen
and uncheck on Current document only. Then you can use the command line as
start "" /max "C:\Program Files Xxxxx.exe" /A "pagemode=FullScreen" "yourfile direction and name.pdf"
Go to the adobe folder, select acrord32.exe
and provide it with path of filename
you want to open. The adobe PDF viewer starts in a new window.
来源:https://stackoverflow.com/questions/6557920/how-to-open-a-pdf-in-fullscreen-view-via-command-line