[bug] When using Replace All, the first element found is removed

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
Jensen Head
User
Posts: 822
Joined: Mon Sep 13, 2021 8:12 am

[bug] When using Replace All, the first element found is removed

Post by Jensen Head »

Summary
When using the Find and Replace function, if there are multiple identical text elements that match your query, the first one disappears.

Steps to Reproduce
1. Create a blank document with one page
2. Add / Add Text (cmd.tool.addText)
3. Make multiple copies of the page with the created text within the current document
4. Auto-replace the text entered in the text block with something else

Expected Behavior
All text blocks were processed equally, the old text was replaced by the new one.

Actual Behavior
The expected changes affected only the second and subsequent elements. The first element disappeared.

Environment
- PDF-XChange Editor 10.7.6, build 404 (Enhanced OCR) (Nov 20 2025; 21:35)
- OS: Microsoft Windows 10.0.26200.7462

Evidence
[bug] When using Replace All, the first element found is removed.webm
You do not have the required permissions to view the files attached to this post.
User avatar
Sean - PDF-XChange
Site Admin
Posts: 611
Joined: Wed Sep 14, 2016 5:42 pm

Re: [bug] When using Replace All, the first element found is removed

Post by Sean - PDF-XChange »

Hi Jensen,

Thanks, I will let the team know.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
Sean - PDF-XChange
Site Admin
Posts: 611
Joined: Wed Sep 14, 2016 5:42 pm

Re: [bug] When using Replace All, the first element found is removed

Post by Sean - PDF-XChange »

Update - this should be fixed in the upcoming build.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623