PDF Editing Issues

How to Create a Colored Rectangle with Text in a PDF Form

Camila MilosovichCamila Milosovich Oct 28, 2026 868 views

Question details

The user wants to insert a colored rectangle containing text within a PDF form.

How to Create a Colored Rectangle with Text in a PDF Form
Product
PDF Editor
Device & OS
not provided
Scenario
Designing or editing an interactive PDF form and needing to highlight specific textual information with a colored background.
Observed behavior
The user needs a reliable method to combine a colored background and text elements seamlessly within a single form field or element.
Before you start

Ensure you have a PDF editing software installed that supports advanced form creation and property editing, such as Adobe Acrobat or WPS PDF.

Solution 1Recommended

Use a Form Text Field with a Background Fill Color

This is the most efficient way to create a colored block of text in a PDF form, as it allows you to easily format the background and text simultaneously.

By utilizing a standard text field and modifying its properties, you can create a seamless colored rectangle that houses your desired text without needing to layer multiple shapes.

1
Enter Form Editing Mode

Open your PDF document in your PDF editor and navigate to the 'Form' or 'Prepare Form' tab to activate the form editing tools.

2
Add a Text Field

Select the 'Add Text Field' tool from the toolbar and drag your cursor on the document to draw a rectangle over your desired area.

3
Open Field Properties

Right-click the newly created text field and select 'Properties' from the context menu to open the customization window.

4
Set the Fill Color

Navigate to the 'Appearance' tab within the Properties window and choose your preferred color from the 'Fill Color' dropdown menu.

5
Enter Text and Adjust Alignment

Switch to the 'Options' tab, enter your required text in the 'Default Value' box, and adjust the 'Alignment' settings so the text is centered or positioned correctly inside the rectangle.

Pro Tip: You can also set the border color and border thickness in the Appearance tab to make your colored rectangle stand out even more.
Efficient PDF Form Creation

Easily Create Interactive PDF Forms with WPS PDF

WPS Office features a powerful PDF editor that allows you to seamlessly add text fields, customize background colors, and create interactive forms without the need for expensive software.

  1. 1. Open PDF in WPS: Launch WPS Office and open your PDF file using the WPS PDF editor.
  2. 2. Access Form Tools: Navigate to the 'Form' tab on the top ribbon.
  3. 3. Draw the Field: Click 'Text Field' and drag to draw a rectangle on your document.
  4. 4. Set Background Color: Right-click the text field, choose 'Properties', and set your desired 'Fill Color' under the Appearance tab.
  5. 5. Add Text and Save: Enter your default text under the Options tab, adjust alignment, and save your newly formatted PDF.
Fully compatible with Adobe Acrobat PDF formats.Easily insert and customize form text fields with background colors.Lightweight software with an intuitive, user-friendly interface.Cross-platform support for Windows, Mac, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Can I make the colored rectangle read-only so users cannot edit the text?

Yes. In the text field properties, go to the 'General' tab and check the 'Read Only' box. This ensures the colored background and your predefined text remain visible but cannot be altered by users viewing the form.

Why is the text in my colored rectangle aligned to the top left?

By default, text fields align text to the top left corner. To center it, open the text field Properties, go to the 'Options' tab, and change the 'Alignment' dropdown to 'Center'.

Will the colored background print when I print the PDF form?

Usually, yes. However, if it doesn't print, ensure that your print settings are configured to print 'Document and Markups' or 'Document and Stamps', and check that the form field property under the 'General' tab is set to 'Visible'.

Can I use multiple lines of text inside the colored rectangle?

Yes. In the text field Properties under the 'Options' tab, check the 'Multi-line' option. This allows your text to wrap automatically and fill the colored rectangle properly without getting cut off.