Other PDF Issues

How to Create a QR Code Visible Only When a PDF is Printed

Khadija KhanKhadija Khan Nov 3, 2026 869 views

Question details

The user wants to embed a QR code in a PDF document so that it is invisible during on-screen viewing but shows up on the physical printed copy.

How to Make a QR Code Visible Only When Printing a PDF
Product
PDF
Device & OS
not provided
Scenario
Adding a static QR code to a document for tracking or additional information on printed copies without cluttering the digital view.
Observed behavior
The goal is to configure an image or field visibility setting to "Hidden but printable" so the display and print behaviors differ.
Before you start

Ensure you already have your generated QR code saved as an image file (like PNG or JPG) on your computer, and open your PDF in a PDF editor that supports interactive form fields.

Solution 1Recommended

Use a Button Form Field to Hide the QR Code On-Screen

You can achieve this effect by inserting a button field, setting its icon to your QR code, and changing its visibility properties to print-only.

This method leverages interactive PDF form features. By using a button field instead of a standard image insertion, you gain access to advanced visibility controls that dictate how the element behaves on-screen versus on paper.

1
Add a Button Field

Open your PDF editor's Form tools and insert a new "Button" field in the exact location where you want the QR code to appear on the printed page.

2
Set the QR Code as the Button Image

Right-click the newly created Button field and open its Properties. Go to the Options tab, choose "Icon Only" for the layout, and click "Choose Icon" to upload your saved QR code image file.

3
Change Visibility Properties

Navigate to the General tab within the Button Properties. Locate the "Form Field" or "Visibility" dropdown menu and select the "Hidden but printable" option.

4
Save and Test

Close the properties dialog and save your PDF document. The QR code should now disappear from your digital screen. Go to File > Print and check the print preview to ensure the QR code is visible.

Use a Button Form Field to Hide the QR Code On-Screen
Static vs. Dynamic QR Codes: This method works perfectly for a static QR code that remains the same for every printed copy. Dynamic, per-user generation requires advanced JavaScript scripting.
Free PDF Editor

Edit PDF Forms and Fields Easily with WPS Office

WPS Office provides a powerful, built-in PDF editor that allows you to add interactive form fields, insert images, and customize print visibility settings with ease. It's a complete office suite for all your document needs.

  1. 1. Download and open WPS Office: Launch the WPS Office desktop app and open your target PDF file using the PDF tab.
  2. 2. Access the Form tools: Click on the "Form" tab on the top ribbon to access the interactive form controls and interactive fields.
  3. 3. Add your QR code to a button: Use the Push Button tool to draw a field, add your QR code as the button's icon in the properties, and set its visibility to hidden but printable.
Easily insert and manage PDF form fields like buttons and text boxesCustomize print and visibility settings for specific PDF elementsHigh compatibility with standard PDF formats and Adobe AcrobatAll-in-one suite to view, edit, and convert PDFs for free
QA img-9

Frequently Asked Questions

Why would I want a QR code to only show when printed?

Hiding a QR code on-screen keeps the digital document clean and readable, while providing physical copies with a scannable link so mobile users can easily access related digital resources.

Can I use this method for images other than QR codes?

Yes. The "Hidden but printable" property applies to the form field itself, meaning any image (like watermarks, secondary logos, or approval stamps) set as the button's icon will behave the same way.

What if my QR code needs to be dynamic for each user?

The button field method is designed for static images. For dynamic QR codes that change per user, you would need advanced PDF scripting (JavaScript) or a server-side PDF generation tool.

Will the hidden QR code print if the user prints 'Document' only?

If the user's PDF reader is specifically set to print 'Document' only (excluding form fields), the QR code might not print. Most standard PDF readers default to printing 'Document and Markups/Forms', but it is a setting the end-user can ultimately change.