PDF Opening Issues

How to Open a PDF at a Specific View Using the Command Line

John WilsonJohn Wilson Nov 5, 2026 871 views

Question details

The user wants to open a PDF document interactively at a specific zoomed or scrolled position using command-line instructions.

How to Open a PDF at a Specific View Using the Command Line
Product
PDF Reader
Device & OS
not provided
Scenario
Launching a PDF programmatically and dictating the exact initial view, position, or scroll location via command-line arguments.
Observed behavior
While general command-line scrolling is not supported natively, standard Adobe PDF Open Parameters offer specific tags like viewrect to control the initial viewing area when launching a file.
Before you start

Ensure you have access to a command-line interface (such as Command Prompt or Terminal) and verify that your default PDF reader fully supports Adobe's PDF Open Parameters.

Solution 1Recommended

Launch the PDF with the viewrect Parameter

Use the viewrect argument in the command line to define the exact viewing rectangle when the PDF first opens.

Command-line arguments cannot send dynamic scroll commands to an already opened PDF. However, you can configure the initial view by using standard Adobe PDF Open Parameters when launching the application.

By utilizing the viewrect parameter, you instruct the PDF reader to open the document with a predefined view bounding box, skipping the need for manual scrolling.

1
Open your command-line interface

Press Windows + R, type 'cmd' into the Run dialog box, and press Enter to launch Command Prompt.

2
Format the open parameter command

Construct the command string. Using Adobe's parameter syntax, it looks like this: [path_to_reader_executable] /A "viewrect=[left],[top],[width],[height]" "[path_to_pdf_file]".

3
Execute the command

Replace the bracketed values with your actual pixel coordinates and file paths, paste the complete command into the terminal, and hit Enter.

Launch the PDF with the viewrect Parameter
Viewer Compatibility Required: The viewrect parameter is specific to the Adobe PDF Open Parameters specification. If your default PDF reader does not support these advanced parameters, the command will be ignored and the document will open at its default view.
WPS PDF Viewer

Navigate and Save PDF Views Effortlessly with WPS Office

If command-line arguments are too complex or unsupported by your reader, you can rely on WPS Office to open, navigate, and save specific views in your PDF documents instantly through a user-friendly graphical interface.

  1. 1. Open your PDF file: Launch WPS Office, click on 'Open', and select your target PDF document from your local directories.
  2. 2. Navigate to the desired location: Scroll manually to the specific section of the document and use the zoom controls in the bottom right corner to perfectly frame your view.
  3. 3. Add a new bookmark: Click the Bookmark icon in the left-hand navigation pane to save this specific view.
  4. 4. Instantly access the view later: The next time you open the document in WPS Office, simply click the saved bookmark to jump directly to your customized view.
Fully compatible with standard Adobe PDF and Microsoft Office formatsIntuitive navigation tools to adjust zoom and specific viewing rectanglesCreate persistent bookmarks to instantly return to exact document views
microsoft office alternative - wps office

Frequently Asked Questions

Can I use the command line to scroll down an actively opened PDF?

No, standard PDF command-line parameters only dictate the initial state of the document upon launching. Interactive scrolling requires third-party scripting tools, such as AutoHotkey.

How do I open a PDF to a specific page using the command line?

You can use the 'page' open parameter. For example, using the syntax /A "page=5" followed by your file path will force the PDF reader to open the document directly to the fifth page.

Why is my PDF reader ignoring the viewrect parameter?

Not all PDF applications fully support the Adobe PDF Open Parameters standard. If you are using a lightweight viewer or a web browser to read PDFs, it will likely bypass these specific tags and load the default view.