How to Prevent Character Spacing Changes When Editing PDF Text
Question details
The user needs to replace specific text, such as ISBN values, across a large batch of PDF files without encountering text distortion or spacing issues after pasting.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Updating old ISBNs to new ones across many PDF documents in a bulk operation.
- Observed behavior
- When replacement text is manually pasted into the PDF, the software unexpectedly alters the character spacing of the newly inserted text.
Prepare a clean plain text or CSV file that lists the pairs of old and new ISBNs or text strings you intend to replace, as this will be required for the automated batch script.
Use an Automated Script and Acrobat Action
Instead of manual pasting, use an automated script with a PDF Action tool to cleanly replace text across large batches without affecting character spacing.
Manually pasting text into existing PDF text boxes often causes bounding box conflicts, leading to unpredictable character spacing (tracking) changes.
By utilizing a batch script combined with a redaction workflow, you can permanently remove the old values and insert new text blocks that retain consistent formatting.
Create a list containing the old ISBNs (to be searched) and the new ISBNs (the replacement text).
In your advanced PDF editor, navigate to the Tools menu and open the Action Wizard.
Set up a new Action that first applies a Redaction command to the old target numbers based on your list.
Add a script execution step to the Action that inserts the new ISBN text at the redacted coordinates with standardized font and spacing settings.
Add your entire folder of PDFs to the Action queue and click Start to process all files automatically.

Manually Adjust Text Formatting properties
If you only need to process a few files, you can manually fix the spacing adjustments after pasting.
Edit PDF Text Seamlessly with WPS Office
WPS Office provides a powerful, intuitive PDF editor that allows you to directly modify text, replace numbers, and adjust formatting without frustrating character spacing distortions.
- 1. Open the PDF: Launch WPS Office and open the target PDF document you wish to update.
- 2. Enable Text Editing: Navigate to the 'Edit' tab located on the top ribbon and click the 'Edit Text' button.
- 3. Replace Text: Highlight the existing ISBN or text block and directly type or paste your new value.
- 4. Save the Document: Review the seamless formatting and click 'Save' to finalize your changes.

Frequently Asked Questions
Why does my character spacing change when pasting text into a PDF?
PDF editing software often tries to fit the pasted text into a specific bounding box originally defined by the PDF's creator. To make the text fit, the software may unexpectedly alter the tracking and character spacing.
Can I batch replace text in multiple PDFs without using a script?
Standard PDF editors typically require manual editing file by file. For fully automated batch replacement across multiple files, specialized plugins, scripting (like JavaScript for Acrobat), or advanced Action Wizards are generally required.
Is PDF redaction permanent when replacing text?
Yes, correctly applying redaction permanently removes the underlying text or image data from the document. This is highly recommended when replacing sensitive data, as it ensures the old information cannot be recovered.
How do I access text formatting properties to fix spacing manually?
In most PDF editors, selecting the 'Edit Text' tool and clicking on a text block will reveal a formatting pane. Here you can adjust font size, color, line height, and character spacing.




