# The text on PDF documents looks distorted for some users

**URL:** <https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [November 29, 2022, 9:51am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209 "2022-11-29T09:51:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![polina.meleca](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@polina.meleca](https://pdfjs.community/u/polina.meleca)\
**Post date:** [November 29, 2022, 9:51am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/1 "2022-11-29T09:51:55Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
8.4.0  
**Detailed description of issue**  
For some users the text looks distorted in PDF document, here is the screenshot:

 ![unrendered_text](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/a/a8ae2cdfde56d1473fa2935e462b88b26faffffe.png)  
The technical specifications of the machines it happens to:  
Windows 10 Business, 64-Bit OS // 1366 x 768 (Screen Res.) // Edge - Version 107.0.1418.62 // Chrome - Version 107.0.5304.108

**Expected behaviour**  
The text on the PDF is completely rendered

**Does your issue happen with every document, or just one?**  
It happens with every document, but only on the specific machines

**Link to document**  
Any document

**Code snippet**  
instance.UI.loadDocument(blob, {extension: ‘pdf’, filename: fileName});

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [November 29, 2022, 5:44pm UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/3 "2022-11-29T17:44:59Z")

</div>

Hi there,

Thank you for contacting pdf.js express forums,

I tested the pdf.js demo site [PDF.js Viewer Demo | PDF.js Express](https://pdfjs.express/demo) on BrowserStack and was unable to reproduce:  
Windows 10, Edge 107 (latest):

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/d/d93bef11b1cdb9527687c35d39b2d221a8a8a6e1.jpeg)

Windows 10 Chrome 107 (latest):

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/d/d442badfc3422cba9a0a8eb432af661283e2f091.jpeg)

Note that the demo site is on 8.7

Can you try upgrading to the latest pdf.js express version and see if you can reproduce the issue?

Otherwise can you send the pdf file that is having the issues?

Thank you in advance.

Best regards,  
Kevin Kim

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

<div class="post-metadata">

**Author:** ![fuse](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@fuse](https://pdfjs.community/u/fuse)\
**Post date:** [December 22, 2022, 3:49am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/4 "2022-12-22T03:49:09Z")

</div>

Hi Kevin,

We are having the same problem. Please see the attached PDF document on the current sample site with an example.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/a/a0cff72c067dd4b79e55cfb2a1596711f7432442.png)

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/e/ee49d8e76d3acc700d40d2f77622fdf8c0afbf77.png)

[sample.pdf](https://pdfjs.community/uploads/short-url/rmQUViz9lchf5lfVMFK3rVjJBJg.pdf) (3.0 KB)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [December 29, 2022, 8:05pm UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/5 "2022-12-29T20:05:10Z")

</div>

Hi fuse,

Please see this forum post: [Choppy text rendered with Windows and Chrome - WebViewer - PDFTron Community](https://community.pdftron.com/t/choppy-text-rendered-with-windows-and-chrome/6034)

Best regards  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![polina.meleca](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@polina.meleca](https://pdfjs.community/u/polina.meleca)\
**Post date:** [January 2, 2023, 9:50am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/6 "2023-01-02T09:50:04Z")

</div>

Thank you, disabling accelerated 2d canvas flag fixed the problem for our users.

---

<div class="post-metadata">

**Author:** ![fuse](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@fuse](https://pdfjs.community/u/fuse)\
**Post date:** [January 3, 2023, 1:04am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/7 "2023-01-03T01:04:17Z")

</div>

Thanks @tgordon.

Note this is also happening on windows 11.

Are there any plans/possible to address this issue? I.e. is it even possible for PDFJS to address this issue with chrome?

Thanks.

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [January 3, 2023, 6:32pm UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/8 "2023-01-03T18:32:48Z")

</div>

Hello fuse,

Unfortunately this is an issue with Chrome/Windows and the graphics drivers. You could possibly try recalculating the layout of the document to trigger a re-render: [recalculateLayout(pagesToRecalculate)](https://pdfjs.express/api/Core.DocumentViewer.html#recalculateLayout__anchor)

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![fuse](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@fuse](https://pdfjs.community/u/fuse)\
**Post date:** [March 24, 2023, 1:31am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/9 "2023-03-24T01:31:27Z")

</div>

Hey Tyler,

I just wanted to see if there was any change in the position of this?

Do you know of any other customers who have had success using recalculateLayout which resolved this problem?

Thanks.

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [March 31, 2023, 4:30am UTC](https://pdfjs.community/t/the-text-on-pdf-documents-looks-distorted-for-some-users/2209/10 "2023-03-31T04:30:13Z")

</div>

Hi Fuse,

Unfortunately our investigation into this issue is ongoing.

We have had other customers try willReadFrequently: true on the iframe returned from pagesRendered but they have been hit-or-miss

Best regards,  
Tyler Gordon
