PDF Editing Issues

How to Place Text Over an Image in an Acrobat PDF Form

Kushani NimanthikaKushani Nimanthika Nov 3, 2026 868 views

Question details

The user wants to display text over an uploaded image within an Acrobat PDF form, ensuring the text remains reliably on top when viewed in free PDF readers.

How to Place Text Over an Image in an Acrobat PDF Form
Product
Adobe Acrobat PDF
Device & OS
not provided
Scenario
Creating interactive PDF forms where respondents can upload an image and overlay custom text on it.
Observed behavior
Overlapping standard text fields and image fields causes an unreliable stacking order, often hiding the text entirely behind the image.
Before you start

Ensure you have access to a PDF editor with advanced form creation and JavaScript scripting capabilities before attempting to configure interactive button labels.

Solution 1Recommended

Use Button Labels and JavaScript to Overlay Text on Images

Avoid unpredictable stacking orders by configuring the image button to display a label along with the icon, utilizing a simple JavaScript prompt for user input.

Overlapping separate text and image fields is generally not recommended because PDF readers cannot explicitly control stacking order. Instead, since image form fields are functionally buttons, you can use the button's built-in caption property to ensure the text always stays on top.

1
Open Field Properties

Right-click the image button field in your PDF form editor and select 'Properties' from the context menu.

2
Configure the Layout

Navigate to the 'Options' tab in the properties window and set the Layout dropdown to one of the 'Label plus Icon' options.

3
Add a JavaScript Prompt

Go to the 'Actions' tab, select 'Mouse Up' as the trigger, and add a 'Run a JavaScript' action. Enter the code: var cLabel = app.response("Enter Label Text"); event.target.buttonSetCaption(cLabel);

4
Test the Form Interaction

Exit form editing mode and click the image field to verify that the prompt appears and the text successfully displays over your uploaded image.

Stacking Order Warning: Do not overlap a separate text field directly over an image field. The last field manipulated in Form Edit mode usually appears on top, making the layout highly prone to breaking when end-users interact with it.
Easy PDF Editor Alternative

Easily Add Text and Images to PDFs with WPS Office

If you do not need complex form scripting and simply want to overlay text onto images in a PDF document, WPS PDF provides straightforward editing tools that bypass layering issues entirely.

  1. 1. Open Your PDF: Launch WPS Office and open your existing PDF document.
  2. 2. Insert an Image: Navigate to the 'Edit' tab and click on 'Add Image' to insert your picture into the document.
  3. 3. Add a Text Box: Click 'Add Text' from the same 'Edit' tab to create a new text element on the page.
  4. 4. Position Over the Image: Drag the text box directly over the image. WPS PDF automatically manages the document layering to ensure your text stays perfectly visible on top.
Seamless compatibility with Microsoft Office formats and standard PDFsIntuitive drag-and-drop tools for simple PDF editingEasily manage fixed visual layering for text and imagesLightweight, fast, and free to download
microsoft office alternative - wps office

Frequently Asked Questions

Why does my text disappear behind the image in a PDF form?

When separate text and image form fields overlap, the stacking order (z-index) becomes unpredictable in standard PDF readers. The last field manipulated in edit mode often jumps to the front, which can hide your text behind the image when the form is used.

Can I permanently lock the stacking order of overlapping PDF form fields?

No, standard PDF readers like Adobe Acrobat Reader do not offer a dependable way to lock or explicitly control the z-order of overlapping interactive form fields. Combining the image and text into a single button field is the safest workaround.

Does the MouseUp JavaScript work in free PDF readers?

Yes, basic JavaScript like the app.response prompt and the buttonSetCaption method generally work in standard free readers (such as Adobe Acrobat Reader), allowing users to input text over the image without needing premium software.