How to Reorder Image Tags After Replacing a Page in Accessible PDFs
Question details
The user needs to correct the sequence of alternative-text image tags that have moved to the end of the document after a page was replaced in an accessible PDF.

- Product
- Device & OS
- not provided
- Scenario
- Replacing an existing page in a tagged, accessible PDF document.
- Observed behavior
- Alternative-text image entries and figure tags appear at the end of the document rather than in the correct page and reading sequence, breaking the document's accessibility structure.
Before modifying the logical structure tree, save a backup copy of your PDF. This ensures you can easily restore the original tagging structure if you accidentally drag an element into the wrong container.
Manually Reorder Image Tags in the Tags Panel
Use the Tags navigation pane to manually drag and drop the displaced <Figure> tags back into their correct structural reading order without recreating the entire accessibility tree.
When you replace a page in an accessible PDF, the existing structure mapping for that page is often discarded, and new elements are appended to the end of the logical structure tree. You can fix this by manually relocating the orphaned tags.
Navigate to the View menu, select Show/Hide, then choose Navigation Panes, and click on Tags to open the Tags navigation structure pane.
Scroll to the bottom of the logical structure tree in the Tags panel. Look for the <Figure> tags or alt-text entries that correspond to the newly replaced page.
Click and hold the displaced <Figure> tag. Drag it up the structure tree and drop it into the appropriate structural element (such as a <Sect> or <Art> tag) that corresponds to the correct reading order of the new page.
Expand the relevant page structure in the Tags panel to ensure the image tags sit properly between the surrounding text tags. Right-click the tag and select Properties to verify the alternative text matches the image.

Easily Manage PDF Pages and Layouts with WPS Office
WPS Office provides a comprehensive suite of PDF tools that allow you to manage pages, edit text, and adjust images efficiently. Its user-friendly interface simplifies complex document workflows.
- 1. Open Your PDF: Launch WPS Office and open your PDF document using the built-in PDF editor.
- 2. Manage Pages: Navigate to the 'Page' tab on the top ribbon. Here you can seamlessly replace, delete, or insert new pages into your document.
- 3. Adjust Content Layout: Switch to the 'Edit' tab to fine-tune images, text blocks, and the overall visual layout of the newly replaced pages.
- 4. Save the Document: Click 'Save' or 'Menu > Save As' to preserve your modifications with complete compatibility for all standard PDF readers.

Frequently Asked Questions
Why do image tags move to the end of the PDF when replacing a page?
When a page is replaced, the software often removes the old structural tags associated with the deleted page. The new page's elements are treated as new content and are appended to the very end of the document's logical structure tree by default.
How can I easily find the correct location for an image tag in the tree?
You can enable the 'Highlight Content' option in the Tags panel options menu. When you click on any tag or structural container in the tree, the corresponding content will be highlighted in the visual document pane, showing you exactly where it belongs.
Does replacing a page always break PDF accessibility?
Yes, standard page replacement usually disrupts the reading order and accessibility tagging for that specific page. You will almost always need to manually review the Tags panel or the Reading Order tool to re-integrate the new page into the document's structure.
Can I use an automated tool to fix the PDF reading order?
While some PDF editors have 'Autotag Document' features, using them on a partially tagged document may overwrite your existing, correct structure. It is generally safer and more accurate to manually drag the misplaced tags to their correct locations.




