PDF Editing Issues

How to Add a Border and Background Color to PDF Text

Chanuka GeekiyanageChanuka Geekiyanage Oct 28, 2026 869 views

Question details

The user wants to add a visible border and background color to text that is being added to an existing PDF document.

How to Add a Border and Background Color to PDF Text
Product
PDF Editor
Device & OS
not provided
Scenario
Editing an existing PDF to highlight or distinguish newly added text by applying borders and colored backgrounds to match specific styling needs.
Observed behavior
Standard text insertion tools in many PDF editors lack native text-frame styling controls, requiring users to rely on specific text box properties or drawing annotations to achieve the desired appearance.
Before you start

Ensure you are using a fully featured PDF editing software rather than a basic PDF reader, as basic viewers typically do not support customizing text box borders or adding layered shape annotations.

Solution 1Recommended

Use the Text Box Tool to Add Styled Text

The most efficient way to add text with a customized background and border is by using a dedicated Text Box tool in your PDF editor.

While standard text tools type directly onto the document canvas without a container, a Text Box acts as an independent object. This allows you to apply rich formatting to the box itself, such as solid fill colors and custom border outlines.

1
Select the Text Box Tool

Open your PDF document and navigate to the Edit or Comment menu, then select the 'Text Box' tool.

2
Create the Text Box

Click and drag on the PDF page to draw the text box, then type your desired text inside it.

3
Access Box Properties

Right-click the boundary of the text box (not the text itself) and select 'Properties' from the context menu.

4
Apply Colors

In the Appearance or Styling tab, choose your desired 'Fill Color' for the background and 'Border Color' to frame the text box. Click OK to apply the changes.

Use the Text Box Tool to Add Styled Text
Tip: You can also adjust the border thickness and style (such as dashed or solid lines) within the same Properties menu.
Easy PDF Editing

Add Borders and Backgrounds Easily with WPS PDF

WPS Office includes a powerful and intuitive PDF editor that allows you to effortlessly insert text boxes, customize border colors, and add background fills without needing complex workarounds.

  1. 1. Open your PDF: Launch WPS Office and open your PDF document using the built-in WPS PDF tool.
  2. 2. Insert a Text Box: Go to the Insert or Comment tab, select the Text Box tool, and drag to draw it on the page.
  3. 3. Customize the Style: Select the text box, open the properties panel on the right, and apply your preferred border style, thickness, and background fill colors.
  4. 4. Save the Document: Once you are satisfied with the appearance, click Save to preserve your beautifully formatted PDF.
Easily add and customize text boxes with full border and background color control.Fully compatible with Adobe PDF standards and formats.Lightweight software with a user-friendly, ribbon-style interface.Includes advanced features like PDF conversion, merging, and digital signing.
microsoft office alternative - wps office

Frequently Asked Questions

Can I change the border thickness of the text box?

Yes. In most professional PDF editors, including WPS PDF and Adobe Acrobat, you can adjust the border thickness by right-clicking the text box, selecting Properties, and changing the line weight or thickness setting in the Appearance tab.

Why is my text disappearing when I add a background color?

If you are using a shape annotation (like a drawn rectangle) for the background, it might be layered above your text. To fix this, right-click the shape and select 'Send to Back' or 'Send Backward' to reveal the text underneath.

Does standard text added to a PDF support backgrounds natively?

Standard text inserted directly into the PDF content stream typically does not have background or border properties. Using a 'Text Box' comment tool or manually layering a shape behind the text is usually required to achieve this styled effect.