Google Translate File print page only prints two pages
Categories
(Core :: Printing: Output, defect, P3)
Tracking
()
People
(Reporter: nieminen.sami2, Unassigned)
Details
(Whiteboard: [layout:print-triage:p1])
Attachments
(2 files)
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.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
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.
Comment 3•5 years ago
|
||
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?
Comment 4•5 years ago
|
||
thesolamnic, please file a separate bug with all the necessary information to reproduce your issue. Thanks.
Reporter | ||
Comment 5•5 years ago
|
||
(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.
Reporter | ||
Comment 6•5 years ago
|
||
Comment 7•5 years ago
|
||
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?
Comment 8•5 years ago
|
||
(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.)
Updated•5 years ago
|
Description
•