I ha开发者_运维技巧ve 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?
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"
You didn't mention which OS you are using. For Linux:
evince -f "filename"
OR
xdg-open "filename"
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.
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.
To launch Foxit PDF Reader from cmd (Windows 10): a)
START FoxitReader.exe "E:\..\myfile.pdf" /A zoom=106% page=1
b)
"<full path to foxit reader exe file>" "<full path to pdf file>" /A zoom=106% page=1
精彩评论