The command-line option /PDFPREF enables users to specify which features of a PDF reader are to be displayed on the screen.
The Menu-bar, Tool-bars, Navigation-bars, Title-bar and Window may be individually controlled by setting the /PDFPREF flag bits.
Flagbit value |
Action |
Notes |
Tool-bar hidden. |
CTRL key shortcuts may still be used. |
|
Menu-bar hidden. |
ALT key shortcuts no longer exist. |
|
Navigation-bars hidden; only the document’s contents are displayed in the document window. |
Ensure that the page is set to an appropriate scale otherwise the user may not be able to view the contents properly. |
|
Window sized to fit the document's first page. |
It would be better to override the default page magnification with this option because otherwise it will use the user's default which could be inappropriate. |
|
Window centered on the screen. |
||
Document title is displayed rather than the filename in the title-bar. |
A document title must be specified for this option to be valid. See PDF document summary |
|
Full-screen mode: the entire screen displays document content only. |
Tool-bars, menus etc. become inaccessible. The user can escape this state using the ESC key; the program then adopts the configuration that would have been used if this option had not been given. |
|
Scale width of the page to fit the document window. |
To "fit page to window", use 128 and 256, i.e. 384. |
|
Scale height of the page to fit the document window. |
To "fit page to window", use 256 and 128, i.e. 384. |
To control several features, add up the appropriate numbers to get the PDFPREF flagbit value.
Here is an example of the normal appearance of Adobe Acrobat Reader (shown at reduced scale):
To hide the tool-bars(1), hide the menu-bar(2) and center the window(16) you would use: |
Care should be exercised as you are overriding user-set preferences. You should consider unexpected consequences since a user who has chosen rather unusual or extreme defaults may find he cannot view a document at all if the wrong combination of these settings is used.
Links