How to Add a Border and Background Color to PDF Text
Question details
The user wants to add a visible border and background color to text that is being added to an existing PDF document.

- 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.
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.
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.
Open your PDF document and navigate to the Edit or Comment menu, then select the 'Text Box' tool.
Click and drag on the PDF page to draw the text box, then type your desired text inside it.
Right-click the boundary of the text box (not the text itself) and select 'Properties' from the context menu.
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.

Layer a Rectangle Shape Behind the Text
If your specific PDF software does not support styling the text box directly, you can draw a custom rectangle shape and place it behind your text.
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. Open your PDF: Launch WPS Office and open your PDF document using the built-in WPS PDF tool.
- 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. 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. Save the Document: Once you are satisfied with the appearance, click Save to preserve your beautifully formatted PDF.

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.




