How to Fix Doubled Letters in PDF Titles After XML Export
Question details
The user needs to resolve an issue where PDF headings show duplicated or doubled letters after being exported from an XML authoring tool.

- Product
- Device & OS
- not provided
- Scenario
- Exporting documents from an XML authoring tool to PDF format using custom stylesheets and embedded fonts like Arial Unicode.
- Observed behavior
- Headings display duplicated letters, which is especially noticeable at high zoom levels, despite looking normal at 100% zoom.
Ensure you have access to the original XML stylesheet or export template, and download a reliable PDF viewer to accurately inspect the document structure at high zoom levels.
Inspect PDF Structure and Modify Export Settings
Verify the PDF's internal structure for overlapping text objects and adjust font rendering settings in your stylesheet to prevent duplicates.
Sometimes export engines simulate text formatting (like bolding) by placing two identical text layers slightly offset from one another. This can cause text to look doubled, especially when zooming in or viewing on high-resolution displays.
Open the exported PDF in your viewer and increase the zoom level to 400% or more to confirm if the text is physically duplicated or just a rendering artifact.
Use a PDF editor with object inspection tools to select the heading text. If you can select and move the text to reveal an identical text layer underneath, the export engine is generating duplicates.
In your XML stylesheet, switch the font from 'Arial Unicode' to another standard Unicode font (like Times New Roman or Calibri) to rule out font-specific embedding glitches.
Re-export the document using your XML authoring tool after adjusting the stylesheet settings, and verify if the issue persists.

Test Alternative PDF Viewers and Rendering Engines
Rule out viewer-specific rendering bugs by opening the file in different applications and updating your export engine.
Easily Inspect and Fix PDF Text Rendering Issues with WPS Office
WPS Office provides a comprehensive PDF toolkit that allows you to view documents at high zoom levels, edit text objects directly, and reliably read files without font distortion.
- 1. Open the PDF in WPS Office: Launch WPS Office, click on 'Open', and select your exported PDF file.
- 2. Zoom in to inspect: Use the zoom slider at the bottom right corner of the window to magnify the headings and check for overlapping text layers.
- 3. Edit text objects: Navigate to the 'Edit' tab and click on 'Edit Text'. Click on the problematic heading to see if multiple text boxes overlap, and delete any duplicates.
- 4. Save the corrected PDF: Once the duplicated text is removed, click 'Menu' and select 'Save' to overwrite the file, or 'Save As' to create a new, clean version.

Frequently Asked Questions
Why does my PDF text look doubled only when I zoom in heavily?
This usually happens when the export tool generates multiple overlapping text objects. It is sometimes used as a workaround by export engines to create a 'faux bold' effect, which becomes visually misaligned and appears doubled due to sub-pixel rendering when zoomed in.
Does embedding the Arial Unicode font cause duplicated text in PDFs?
It can in some specific export engines. If the XML export engine mishandles the font's specific metrics or the embedding process, it might render the text multiple times. Testing a different standard Unicode font helps isolate whether the issue is font-specific.
How can I prevent my XML tool from generating duplicate text layers?
Review your stylesheet configuration (such as XSL-FO properties). Ensure that heading styles do not have redundant rules applied, such as simultaneous font-weight changes and text-shadows, which might force the engine to draw the text more than once.




