Fix Heading 4 Not Appearing in PDF Bookmarks in Word
Question details
The user is experiencing an issue where Heading 4 styles placed inside text boxes in document margins do not generate bookmarks when exporting the Word document to PDF, despite Headings 1 through 3 working correctly.
- Product
- Word
- Device & OS
- not provided
- Scenario
- Exporting a formatted document to PDF and attempting to navigate using the generated PDF bookmarks.
- Observed behavior
- Heading levels 1 to 3 appear correctly in the PDF bookmarks, but Heading 4 fails to appear when placed inside a text box in the margin.
Ensure that your text is correctly assigned the Heading 4 style before attempting to modify its container layout.
Replace Text Boxes with Frames
Using frames instead of text boxes keeps the headings within the normal document text layer, allowing PDF exporters to properly read and generate bookmarks for deeper heading levels.
Microsoft Word places text boxes on a separate graphical layer. This separation can cause the PDF conversion engine to ignore deeper heading levels (like Heading 4 and below) when generating navigation bookmarks.
Replacing the text box with a Frame resolves this issue because frames remain part of the main text flow while still allowing you to position elements in the document margins.
Go to File > Options > Customize Ribbon, check the box for 'Developer' in the right pane, and click OK.
Navigate to the Developer tab, click on 'Legacy Tools' in the Controls group, and select the 'Insert Frame' icon.
Copy your Heading 4 text from the existing text box, paste it into the newly created frame, and delete the old text box.
Right-click the frame border, select 'Format Frame', and adjust the horizontal and vertical positioning to place it in the document margin.
Use a Single-Cell Table for Positioning
A borderless single-cell table is an excellent alternative to text boxes that allows margin positioning without removing text from the primary document layer.
Create and Export PDF Bookmarks Flawlessly with WPS Writer
Avoid complex text box layer limitations when exporting documents to PDF. WPS Writer handles heading structures and layout containers intuitively, allowing you to easily generate complete PDF bookmarks without missing levels.
- 1. Open Your Document: Launch WPS Writer and open the document containing your margin headings.
- 2. Verify Heading Styles: Ensure your margin text is correctly assigned the Heading 4 style via the Home tab.
- 3. Export to PDF: Click on 'Menu' in the top-left corner and select 'Export to PDF'.
- 4. Enable Bookmark Export: In the export dialog, click on 'Advanced settings', check the box to export bookmarks based on headings, and complete the export.

Frequently Asked Questions
Why do Headings 1-3 work in text boxes but not Heading 4?
Word processes drawing layers (like text boxes) differently during PDF export. By default, its bookmark generation engine often limits nested heading extraction from graphical elements to the first three levels to optimize performance.
How do I make the frame border invisible?
Select the frame, go to the Home tab, find the Borders icon in the Paragraph group, and select 'No Border' from the dropdown menu.
Will using frames instead of text boxes mess up my document layout?
Frames behave slightly differently than text boxes, but they can be formatted to look identical. You may need to manually adjust the frame's width, text wrapping, and absolute positioning via the 'Format Frame' dialog to perfectly match your original layout.




