# Error rendering pdf test

**URL:** <https://pdfjs.community/t/error-rendering-pdf-test/2304>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [January 18, 2023, 11:14am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304 "2023-01-18T11:14:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjamin.rombaux](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjamin.rombaux](https://pdfjs.community/u/benjamin.rombaux)\
**Post date:** [January 18, 2023, 11:14am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/1 "2023-01-18T11:14:41Z")

</div>

**PDF.js Express Version**  
8.7.0

**Detailed description of issue**  
Hello, some pdf generated by tesseract ocr are not rendering properly on PDFjs express.

The problem is probably due to the version of pdfjs used by PDFjs express. This problem also exist in pdfjs 2.15 but is fixed using one the latest version ( tested on 3.3.78 ).

[test\_page1.pdf](https://pdfjs.community/uploads/short-url/8eJLDI7lKerMIi7t2PwHqkUUd8V.pdf) (131.0 KB)

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

**Expected behaviour**  
PDF should render all pages without issues.

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

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 18, 2023, 5:10pm UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/3 "2023-01-18T17:10:44Z")

</div>

Hi @benjamin.rombaux,

I just tested this document on the PDFjs Express demo site and I think it was rendered correctly. Could you confirm this?

> **[PDF.js Viewer Demo | PDF.js Express](https://pdfjs.express/demo)**
>
> Try the PDF.js Express Viewer demo: 26 out-of-the-box annotations, PDF form filling, e-signatures, UI customization, light/dark themes & more.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![benjamin.rombaux](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjamin.rombaux](https://pdfjs.community/u/benjamin.rombaux)\
**Post date:** [January 19, 2023, 7:55am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/4 "2023-01-19T07:55:17Z")

</div>

Hi @zserviss, I tested on my side, but it wasn’t rendered properly, at least on firefox.

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

But it’s partially rendered on google chrome ( the first few number are rendered properly, but not the digital signature which is missing its text ).

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 19, 2023, 8:26pm UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/5 "2023-01-19T20:26:03Z")

</div>

Interesting, I’m able to render correct on Safari, Chrome and FireFox.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/6/6edf87c940df49925c1e539664fab5c5191db89c.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/b/b11c45dba7881fcc294b6fc4d16f933175b392e3.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/7/76be3119f180497b0b1950cc4c4088543155f9d8.jpeg)

I am on an M1 MacBook, what devices are you seeing this on?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![benjamin.rombaux](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjamin.rombaux](https://pdfjs.community/u/benjamin.rombaux)\
**Post date:** [January 20, 2023, 7:52am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/6 "2023-01-20T07:52:06Z")

</div>

@zserviss I am on a windows 11 using Citrix virtual desktop. I’ve tried on my host machine ( standard Lenovo ), with the same results.

It may be related to the font provided by the computer ( checking off [browser.display.use\_document\_fonts] in about:config on firefox will show the text, but will disable all other fonts ).

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 20, 2023, 5:41pm UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/7 "2023-01-20T17:41:32Z")

</div>

Hi @benjamin.rombaux,

Could you try to disable the hardware acceleration on browsers to see if that fixes the issue?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![benjamin.rombaux](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjamin.rombaux](https://pdfjs.community/u/benjamin.rombaux)\
**Post date:** [January 23, 2023, 9:48am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/8 "2023-01-23T09:48:23Z")

</div>

I tried, but it didn’t resolved the problem

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 23, 2023, 11:10pm UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/9 "2023-01-23T23:10:49Z")

</div>

Could you please attach your computers specs?

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![benjamin.rombaux](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@benjamin.rombaux](https://pdfjs.community/u/benjamin.rombaux)\
**Post date:** [January 24, 2023, 10:04am UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/10 "2023-01-24T10:04:23Z")

</div>

Sure,

On my Citrix VM:

- Intel(R) Xeon(R) Gold 6248 CPU
- 16Go Ram
- Citrix Virtual Display adapter Chip

On my laptop:

- Intel(R) Core™ i7-10610U
- 32 Go Ram
- Intel R UHD Graphics

Both running on Windows 11

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [January 24, 2023, 5:11pm UTC](https://pdfjs.community/t/error-rendering-pdf-test/2304/11 "2023-01-24T17:11:32Z")

</div>

Great thanks for that.

I will add this item to our backlog to be work on at a later time. I will update you in this thread when a fix is ready.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.
