How to Fix Garbled Text When Printing a Web Page to PDF
Question details
The user encounters a mix of unreadable, garbled characters and correct text when attempting to print a web page to a PDF file.

- Product
- Web Browsers and PDF Virtual Printers
- Device & OS
- not provided
- Scenario
- Trying to save or print an online web page into a PDF document for offline reading or archiving.
- Observed behavior
- The resulting PDF document fails to render the fonts correctly, resulting in corrupted or gibberish text in place of the actual web page content.
Ensure that your web browser and your PDF printer software are updated to their latest versions, as updates often contain critical font rendering and compatibility fixes.
Print to PDF Using a Different Web Browser
Different web browsers handle font encoding and virtual printing differently. Switching from your current browser to another can often bypass font corruption.
In many cases, garbled text in a PDF is caused by a specific browser's inability to properly encode web fonts during the print process. For instance, Microsoft Edge might struggle with certain page elements that Mozilla Firefox or Google Chrome can handle seamlessly.
Launch a different web browser, such as Mozilla Firefox or Google Chrome, and navigate to the exact URL of the web page you wish to convert.
Click the browser's menu icon and select 'Print', or use the keyboard shortcut Ctrl + P (Windows) or Cmd + P (Mac) to open the print dialog.
In the 'Destination' or 'Printer' dropdown, choose your preferred PDF virtual printer (such as 'Save to PDF' or 'Adobe PDF').
Click the 'Print' or 'Save' button, choose a destination on your computer, and open the new PDF to ensure the text is fully readable.

Use the 'Create PDF from Web Page' Feature in a PDF Editor
Bypassing the browser's print engine altogether and using a dedicated PDF editor's web conversion tool can prevent text rendering issues.
Save the Web Page Locally Before Converting
Saving the web page as an HTML file first ensures all text and resources are stored locally, which can stabilize the conversion process.
Convert and Edit PDFs Flawlessly with WPS Office
Avoid garbled text, missing fonts, and messy formatting by using WPS Office's built-in PDF tools. WPS provides a highly reliable PDF environment, allowing you to easily generate, read, and edit high-quality PDFs without compatibility headaches.
- 1. Download and Install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open Your Source File: Open the document, image, or saved web page that you wish to convert to PDF.
- 3. Use the WPS PDF Tools: Navigate to the 'Tools' tab and select 'Export to PDF', or use the WPS PDF virtual printer in your system print dialog.
- 4. Edit Your New PDF: Open the newly created PDF in WPS PDF Editor to seamlessly add annotations, modify text, or merge pages.

Frequently Asked Questions
Why does text become garbled when printing to PDF?
This usually occurs due to missing font embeddings, incorrect character encoding by the web browser, or an outdated PDF virtual printer failing to render modern web fonts properly.
Does clearing the browser cache fix PDF printing issues?
Sometimes. If a web font file failed to download correctly while you were browsing, clearing your cache and reloading the web page forces the browser to fetch a fresh, uncorrupted version of the font before you print.
How can I tell if my PDF is permanently garbled or just displaying incorrectly?
Try selecting a block of the garbled text in your PDF viewer and pasting it into a plain text editor like Notepad. If the pasted text is readable, you are experiencing a font display issue in your PDF reader. If it pastes as gibberish, the text encoding was permanently corrupted during the print conversion.




