pdfjs printing in Hebrew/Arabic is messed up

NEW
Unassigned

Status

()

2 years ago
a year ago

People

(Reporter: sh.yaron, Unassigned)

Tracking

52 Branch
Points:
---

Firefox Tracking Flags

(firefox52 wontfix, firefox54 affected)

Details

Attachments

(11 attachments)

(Reporter)

Description

2 years ago
Created attachment 8832434 [details]
The PDF printed from withing pdfjs (instead of printing)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170130065342

Steps to reproduce:

I opened a pdf file using Firefox, then I clicked the printing button and I got a completely messed up page.


Actual results:

The letters were in the correct oreder but completely misaligned for their designated space.


Expected results:

The printing should have looked like the pdf exactly.
(Reporter)

Comment 1

2 years ago
Created attachment 8832436 [details]
The original document
(Reporter)

Comment 2

2 years ago
Created attachment 8832437 [details]
The printed document

Comment 3

2 years ago
I can reproduce this issue on my side. (Nightly on Linux)

Please note that there is clear indication about potential issues when viewing the file, but while it is displayed well on screen, printing the file to a real printer (as Yaron did) or a PDF writer caused this behavior.
Status: UNCONFIRMED → NEW
status-firefox52: --- → affected
status-firefox54: --- → affected
Ever confirmed: true

Updated

2 years ago
Component: Untriaged → PDF Viewer

Comment 4

2 years ago
Comment on attachment 8832434 [details]
The PDF printed from withing pdfjs (instead of printing)

Please note that the original document and the printed one are using different fonts.
Attachment #8832434 - Attachment description: The PDF saved from withing pdfjs (instead of printing) → The PDF printed from withing pdfjs (instead of printing)

Comment 5

2 years ago
Created attachment 8832443 [details]
Another document (BTL501)

I am attaching another document from different authority. This one is document form 501 [1] from Israeli National Insurance (ביטוח לאומי). The printed result is on the next attachment. 

1: https://www.btl.gov.il/%D7%98%D7%A4%D7%A1%D7%99%D7%9D%20%D7%95%D7%90%D7%99%D7%A9%D7%95%D7%A8%D7%99%D7%9D/Documents/t501.pdf

Comment 6

2 years ago
Created attachment 8832444 [details]
Printed document (BTL501)

Comment 7

2 years ago
Created attachment 8832448 [details]
attachment 722960 [details] printed as PDF

Steps to reproduce:
a. I've taken the attachment 722960 [details] from bug 849404 which is text/plain and printed it directly from within the browser. The produced PDF is accurate with the text/plain content displayed in the browser. (attached)
b. Then I've opened the produced PDF file directly in the browser, which displayed well, and printed the file again. 
c. The produced file from pdfjs is not accurate with the previous produced PDF file.

Comment 8

2 years ago
Created attachment 8832449 [details]
attachment 722960 [details] printed as PDF twice (BAD)

Comment 9

2 years ago
Created attachment 8832457 [details]
attachment 722960 [details] printed as PDF few times (animation)

I've created an animation to demonstrate how it affect multiple re-prints. The first frame is the original documents, from there you can see how the characters are misaligned. It looks like a rendering issue to me.
Too late for firefox 52, mass-wontfix.
status-firefox52: affected → wontfix
Testing with Firefox 58 and printing to PDF it looks good to me. There were some fixes in Firefox 53 (bug 1311512), could you retry?
Flags: needinfo?(sh.yaron)
(Reporter)

Comment 12

a year ago
Tested again with 57b6, same results, thank you.

Can you please post your results so I can see what is your definition of a well formed document :) ?
Flags: needinfo?(sh.yaron)
Created attachment 8916776 [details]
Screen Shot from MacOS printed to PDF of Orginal PDF 2017-10-09.png
(Reporter)

Comment 14

a year ago
Your results seem surprisingly good, I'm wondering what might cause this.

In the meanwhile I conducted the same checks on Arabic and the text is completely unreadable.
(Reporter)

Comment 15

a year ago
Created attachment 8916788 [details]
Original Arabic document
(Reporter)

Comment 16

a year ago
Created attachment 8916791 [details]
Arabic printed PDF
(Reporter)

Updated

a year ago
Summary: pdfjs printing in Hebrew is messed up → pdfjs printing in Hebrew/Arabic is messed up
(In reply to Yaron Shahrabani from comment #14)
> Your results seem surprisingly good, I'm wondering what might cause this.
> 

Maybe an extension or config setting? Could you try with a clean profile? https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles
Flags: needinfo?(sh.yaron)
(Reporter)

Comment 18

a year ago
I just tried with Linux and it's working fine, I only encounter this problem on mac.
(Reporter)

Comment 19

a year ago
Tried again with Mac OS Sierra 10.12.6 and Firefox 58.0a1 (Nightly), Still happens.

Earlier I did the exact same process on Linux (Without creating a new profile or changing anything) and the document came out of PDF printing as expected.
Flags: needinfo?(sh.yaron)
You need to log in before you can comment on or make changes to this bug.