Closed Bug 1632516 Opened 4 years ago Closed 4 years ago

Google Translate File print page only prints two pages

Categories

(Core :: Printing: Output, defect, P3)

75 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 267029

People

(Reporter: nieminen.sami2, Unassigned)

Details

(Whiteboard: [layout:print-triage:p1])

Attachments

(2 files)

Attached file MI LEON 07 07_EN.pdf

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Print page in translate.google.com after uploading a file.
https://translate.google.com/#view=home&op=docs&sl=auto&tl=en

Attached is a test pdf, you can upload to google translate, and try to print the page.

Actual results:

Print preview only shows two pages, and printing to pdf / printer only prints out two pages

Expected results:

Print preview should display all pages, and print all pages.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Printing: Output
Product: Firefox → Core

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

I have a similar bug. As of 4/18/20 printer settings were working fine as I was able to print out something just fine. Trying to print from Android or Ubuntu now all have the same error of a blank page with a header, a page trying to cram all of the information onto one page that will display more of the page on that one piece of paper if the scale is lowered, and a final blank page with a footer.

Well, the file you provided generates ~302 pages on translate.google.com for me so far... and after ten minutes there's still a throbber saying "translating..." so it's hard to diagnose what the problem is since the document isn't completed...
Do you get the same error with a smaller document?

Flags: needinfo?(nieminen.sami2)

thesolamnic, please file a separate bug with all the necessary information to reproduce your issue. Thanks.

(In reply to Mats Palmgren (:mats) from comment #3)

Well, the file you provided generates ~302 pages on translate.google.com for me so far... and after ten minutes there's still a throbber saying "translating..." so it's hard to diagnose what the problem is since the document isn't completed...
Do you get the same error with a smaller document?

Hello,

I have attached a smaller file, 56 pages, but the file is a lot smaller.

Flags: needinfo?(nieminen.sami2)
Attached file Download.pdf

I'm able to reproduce this with the smaller file. It doesn't print anything more than the first page. Google Translate seems to generate a bunch of inline <span> that contain absolutely positioned <div> in an effort to try to replicate the original PDF's layout.

Mats: I suppose the inline elements are the issue?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(mats)
Priority: -- → P3
Whiteboard: [frag2020][layout:print-triage:p1]

(In reply to Sean Voisen (:svoisen) from comment #7)

Mats: I suppose the inline elements are the issue?

No, this is a dupe of bug 267029.
It looks like every line of translated text is put into markup that looks like this:

<font size="3" face="Times" color="#2e7cbe">
  <span style="font-size:13px;font-family:Times;color:#2e7cbe">
    <div style="position:absolute;top:3520;left:174">
      <nobr>
        <a href="#49">Conventions</a>
        <font color="#ff8200"><a href="#49">.............................................................................................................................................</a></font>
        <a href="#49">49</a>
      </nobr>
    </div>
  </span>
</font>

(I think that bug 267029 is probably more important to fix than the huge inline-block issue.)

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(mats)
Resolution: --- → DUPLICATE
Whiteboard: [frag2020][layout:print-triage:p1] → [layout:print-triage:p1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: