How to Fix PDF Bad Widths and Font Errors in Citrix
Question details
The user needs to resolve 'bad widths' and font rendering errors that occur when combining multiple PDF reports.

- Product
- PDF Software
- Device & OS
- Citrix virtual desktop environment
- Scenario
- Merging multiple PDF reports containing custom fonts or complex images within a virtual desktop environment.
- Observed behavior
- The system throws a 'bad widths' error or fails to render custom fonts correctly during the PDF combination process.
Before proceeding, ensure you have access to the original source documents and verify that your PDF software is updated to the latest version in your Citrix environment.
Re-embed Fonts via PDF Printer
Use a virtual PDF printer to flatten the document and properly embed any missing or corrupted custom fonts before attempting to merge the files.
The 'bad widths' error usually stems from corrupted font dictionaries or missing font data within the document. Printing the file to a new PDF forces the software to re-evaluate and embed the fonts cleanly.
Locate and open the specific source document (such as Word or Excel) that generated the problematic PDF.
Navigate to 'File' and click on 'Print'. In the printer selection dropdown, choose 'Adobe PDF', 'WPS PDF', or your default virtual PDF printer.
Click the 'Print' button and save the newly generated, flattened PDF file to your local drive.
Open your PDF merging tool and combine these newly generated PDF files to verify that the 'bad widths' error is resolved.

Verify Individual PDF Integrity
Identify the specific corrupted file by opening each PDF individually before attempting to merge them.
Merge PDFs Smoothly Without Font Errors Using WPS Office
WPS Office provides a robust built-in PDF toolkit that handles custom fonts and complex image rendering with ease. You can merge, edit, and print PDFs seamlessly without encountering frustrating formatting or width errors.
- 1. Open WPS PDF Tools: Launch WPS Office and navigate to the 'PDF' tab on the main home screen.
- 2. Select Merge PDF: Click on the 'Merge PDF' button located in the built-in PDF toolkit menu.
- 3. Add Your Files: Click 'Add Files' to import the PDF reports you want to combine, then arrange them in your desired order.
- 4. Merge and Save: Click the 'Merge' button to generate a newly combined PDF document with perfectly preserved fonts and layouts.

Frequently Asked Questions
What causes a 'bad widths' error in a PDF?
This error occurs when the font dictionary within the PDF is corrupted or when custom fonts were not fully embedded during file creation, causing the PDF viewer to incorrectly calculate text spacing and character widths.
Why do font rendering errors happen specifically in Citrix environments?
Virtual desktop environments like Citrix may not have the specific custom fonts installed on the host server. If your PDFs rely on local system fonts instead of embedding them, the rendering engine will struggle to display the text accurately.
How do I ensure my custom fonts are embedded when creating a PDF?
When exporting or printing a document to PDF, open your software's export preferences or printer properties. Make sure the option to 'Embed all fonts' is checked before generating the file to ensure standalone compatibility.




