Note: There are a few cases of duplicates in user autocompletion which are being worked on.

pdf containing vertical japanese text does not render correctly

RESOLVED FIXED in Firefox 22



PDF Viewer
5 years ago
4 years ago


(Reporter: jtd, Assigned: Artur Adib)


Firefox 22
Dependency tree / graph

Firefox Tracking Flags

(firefox15- affected, firefox16- affected)


(Whiteboard: [pdfjs-c-rendering][pdfjs-f-fixed-upstream])


(2 attachments)



5 years ago
Created attachment 638586 [details]
About the MVO of UTR50


1. Open the attached pdf file

Result: file is never loaded, browser just shows the loading animation.

Original file:

Comment 1

5 years ago
Confirmed using 2012-07-02 nightly.

Comment 2

5 years ago
Regression window(m-c)
Good(but No Japanese text):
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120601055003
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120601073103

Regression window(m-i)
Good(but No Japanese text):
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120530222224
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120531021523

Triggered by: Bug 748924
Blocks: 748924
Keywords: regression
OS: Mac OS X → All


5 years ago
tracking-firefox15: --- → ?
tracking-firefox16: --- → ?
status-firefox15: --- → affected
status-firefox16: --- → affected
tracking-firefox15: ? → +
tracking-firefox16: ? → +

Comment 3

5 years ago
Given bug 773397, tracking for FF16's release but not FF15. Also sending over to Artur since he landed the suspected regressing bug.
Assignee: nobody → aadib
tracking-firefox15: + → -
This file should be loading fine in the current nightly. However, the CJK font doesn't seem to be rendering correctly.
Keywords: relnote

Comment 5

5 years ago
It's not clear if this is a common problem, and PDF.js will ship in 17 or later, so untracking for release.
tracking-firefox16: + → -
Keywords: relnote

Comment 6

5 years ago
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Firefox/17.0
Build date: 2012-08-27

PDF now loads but vertical text elements display incorrectly (see attached screenshot).
Summary: pdf file hangs while loading → pdf containing vertical japanese text does not render correctly

Comment 7

5 years ago
Created attachment 655873 [details]
screenshot, pdf displayed with pdf.js vs. preview


5 years ago
Keywords: regression
Whiteboard: [pdfjs-d-text-selection]


5 years ago
Whiteboard: [pdfjs-d-text-selection] → [pdfjs-c-rendering]

Comment 8

5 years ago
The following urls are other examples of this bug, I think.

Maybe if the PDF has not only vertical characters but also horizntal characters in the same document, it shows the problem.
Fixed in
Whiteboard: [pdfjs-c-rendering] → [pdfjs-c-rendering][pdfjs-f-fixed-upstream]

Comment 10

4 years ago
I confirmed the fix with pdf.js 0.7.283 on Firefox 19(Vista).
Thank you.
Depends on: 849627
Depends on: 849628

Comment 11

4 years ago
further confirm issue fixed in 0.7.355 with traditional chinese vertical text document sample:

I can see japan and taiwan pdf layout use vertical text a lot (especially with long article like novel), would love to see it in stable Firefox sooner than later (Firefox 19.0.2 still have this issue.)
Fixed by bug 848641.
Unfortunately the fix is too big to backport to branches, IMO. So merging to Firefox will not be sooner than Firefox 22.
You can install the latest development version of PDF.js add-on if you can't wait:
Usually this is much newer than the Firefox internal version.
Last Resolved: 4 years ago
Depends on: 848641
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22

Comment 13

4 years ago
This fix does not yet completely resolve the text layer positioning. Even on the test PDF above, text layer is nit position correctly:

Tested using at 79c3546c924501ba4c9852233cd4638414cdf5ea.

If you select all text or make text be displayed, you can see that latin text on the first page is not displayed correctly.

Comment 14

4 years ago
Furthermore, it fails in same manner (hidden text layer) for PDFs from arXiv:
The latin text problem is a separate issue and tracked by <>.

Comment 16

4 years ago
Verified as fixed on Firefox 23 Nightly(Build ID: 20130408030928) 
-the page loads correctly
-the text is correctly displayed	

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20130408 Firefox/23.0
Mozilla/5.0 (X11; Linux i686; rv:23.0) Gecko/20130408 Firefox/23.0
Mozilla/5.0 (Windows NT 6.2; rv:23.0) Gecko/20130408 Firefox/23.0
You need to log in before you can comment on or make changes to this bug.