How to Add Non-Printing Horizontal and Vertical Rulers in PDF Documents
Question details
The user wants to display interactive horizontal and vertical rulers in a PDF document without having those rulers appear when the document is printed.

- Product
- Device & OS
- not provided
- Scenario
- Viewing or editing a PDF document where precise measurements or alignment guides are needed on-screen, but should remain invisible on printed physical copies.
- Observed behavior
- Standard PDF viewers do not natively display interactive rulers like web browsers do. Any visual guides added directly to the document normally print unless explicitly configured as non-printing layers.
Before adding custom rulers, ensure your PDF editor supports Optional Content Groups (OCGs) or layer management, as this feature is required to set graphical elements specifically as non-printing.
Create and Assign Rulers to a Non-Printing Layer
Use a specialized PDF editor to draw ruler graphics and assign them to a layer configured to be visible on screen but disabled for printing.
By utilizing Optional Content Groups (layers) within the PDF specification, you can include measurement guides that assist with on-screen layout without ruining the final printed document.
Open your PDF editor and use the line, shape, or text tools to draw horizontal and vertical rulers along the top and left edges of your document.
Navigate to the View menu or the left-hand sidebar and open the Layers (or Optional Content Groups) panel.
Select your newly created ruler graphics, right-click them, and assign them to a newly created layer named 'Rulers'.
Right-click the 'Rulers' layer in the Layers panel, go to Layer Properties, and change the Print setting from 'Always Prints' to 'Never Prints'.

Enable Built-in Rulers in Your PDF Viewer
Many advanced PDF applications have a built-in interactive ruler feature that only displays on-screen as part of the software interface.
Easily Measure and Edit PDFs with WPS Office
WPS Office provides robust PDF editing capabilities, including the ability to view, manage, and precisely edit document layouts. With built-in tools and high compatibility, managing PDF graphics and layouts becomes effortless without the need for complex workarounds.
- 1. Download and Install: Download WPS Office from the official website and install it on your Windows, Mac, or mobile device.
- 2. Open your PDF: Launch the WPS PDF tool from the main dashboard and open the document you wish to measure or edit.
- 3. Access Edit Tools: Navigate to the 'Edit' or 'Comment' tab to utilize alignment guides, insert shapes, and apply annotations to mark up your document precisely.
- 4. Save and Export: Once your layout is adjusted, simply save the document. WPS ensures all standard PDF properties are preserved for high-quality printing or digital sharing.

Frequently Asked Questions
Why do the rulers I added to my PDF appear when I print the document?
If you manually drew rulers or measurement lines on the document pages, the software treats them as standard graphical content. To prevent them from printing, they must be assigned to a specific non-printing layer using an advanced PDF editor.
Can I view interactive PDF rulers directly in my web browser like Chrome or Edge?
Most built-in web browser PDF viewers are designed for simple document viewing and do not support interactive interface rulers or advanced layer visibility toggles. You typically need to open the file in a dedicated PDF application.
Is there a universal keyboard shortcut to show rulers in PDF readers?
While there isn't a universally guaranteed shortcut across all programs, most standard desktop PDF applications allow you to toggle horizontal and vertical software rulers by pressing Ctrl+R on Windows or Cmd+R on Mac.




