difference between the print button in Firefox & pdf viewer

Post bug reports related to either the kiosk ISO or the kiosk wizard here.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
aubry
Ronin
Ronin
Posts: 3
Joined: 10 Sep 2015, 13:46
Distribution: mint
Location: france

difference between the print button in Firefox & pdf viewer

Post#1 by aubry » 05 Apr 2016, 05:50

Hi,
I have installed many pc with Porteus kiosk, all of them use lexmark printers (MS811) via network.
When i open a pdf in firefox, and when i want to print it, if i use the print button that is in the toolbar of firefox, the document prints. But if i use the print button that is in the toolbar of the pdf viewer, the document does not print. I wait a moment, if i print a web page via the button in the toolbar of firefox, so the pdf prints then the web page.

Thanks for your help.

Aubry

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: difference between the print button in Firefox & pdf vie

Post#2 by fanthom » 05 Apr 2016, 10:15

Hello Aubry,

Please try to print from PDF print button and then post the logs from following links:

Code: Select all

http://127.0.0.1:631/admin/log/access_log
http://127.0.0.1:631/admin/log/error_log
http://127.0.0.1:631/admin/log/page_log
Thank you.
Please add [Solved] to your thread title if the solution was found.

aubry
Ronin
Ronin
Posts: 3
Joined: 10 Sep 2015, 13:46
Distribution: mint
Location: france

Re: difference between the print button in Firefox & pdf vie

Post#3 by aubry » 06 Apr 2016, 10:37

Hello,

In fact, the two buttons print the document but the time necessary to print is longer. For example, with the same pdf, the print button of firefox takes 40sec to print but the pdf button takes 2min ...
This is the files :

Access_log :

Code: Select all

localhost - - [06/Apr/2016:11:32:34 +0200] "POST /admin/ HTTP/1.1" 401 216 CUPS-Add-Modify-Printer successful-ok
localhost - root [06/Apr/2016:11:32:34 +0200] "POST /admin/ HTTP/1.1" 200 216 CUPS-Add-Modify-Printer successful-ok
localhost - root [06/Apr/2016:11:32:34 +0200] "POST / HTTP/1.1" 200 10530 CUPS-Get-PPD -
localhost - root [06/Apr/2016:11:32:34 +0200] "POST /admin/ HTTP/1.1" 200 10581 CUPS-Add-Modify-Printer successful-ok
localhost - - [06/Apr/2016:11:34:39 +0200] "GET /admin/log/access_log HTTP/1.1" 200 436 - -
localhost - - [06/Apr/2016:11:35:02 +0200] "GET /admin/log/error_log HTTP/1.1" 200 472 - -
localhost - - [06/Apr/2016:11:45:53 +0200] "POST /printers/kiosk-printer HTTP/1.1" 200 3186277 Print-Job successful-ok
Error_log :

Code: Select all

E [06/Apr/2016:11:32:14 +0200] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.
W [06/Apr/2016:11:32:34 +0200] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
W [06/Apr/2016:11:32:34 +0200] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
Page_log is empty.

Also, is ti possible to disable the toolbar of the pdf viewer ?

Thanks,

Aubry

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: difference between the print button in Firefox & pdf vie

Post#4 by fanthom » 07 Apr 2016, 08:13

"In fact, the two buttons print the document but the time necessary to print is longer. For example, with the same pdf, the print button of firefox takes 40sec to print but the pdf button takes 2min .."
We have found that Firefox PDF viewer "takes a screenshot" of the PDF and sends it to the printer. Quality is worse than printing from Adobe Reader.
Image must be processed and this is probably the reason why it takes longer.

"Also, is ti possible to disable the toolbar of the pdf viewer ?"
Google does not return much:
https://support.mozilla.org/en-US/questions/982288

It would probably require modifications to the pdf viewer sources and I dont think its worth the hassle.
Please add [Solved] to your thread title if the solution was found.

aubry
Ronin
Ronin
Posts: 3
Joined: 10 Sep 2015, 13:46
Distribution: mint
Location: france

Re: difference between the print button in Firefox & pdf vie

Post#5 by aubry » 21 Jun 2016, 10:07

Hi,
I reply to myself to disable the toolbar of the pdf viewer :

I created this file : userContent.css in /home/guest/.mozilla/firefox/c3pp43bg.default/chrome/
Which contains :

Code: Select all

#outerContainer #mainContainer div.toolbar {
  display: none !important; /* hide PDF viewer toolbar */
}
#outerContainer #mainContainer #viewerContainer {
  top: 0 !important; /* move doc up into empty bar space */
}
@-moz-document regexp("^about:about.*|^about:addons.*|^about:accounts.*|^about:app-manager.*|^about:cache.*|^about:config.*|^about:customizing.*|^about:home.*|^about:memory.*|^about:networking.*|^about:permissions.*|^about:preferences.*|^about:support.*|^about:sync-log.*|^about:telemetry.*|^view-source:.*|^chrome:.*|^file:.*") {
html, page, window { display: none !important; }
}
it works well.

Aubry

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: difference between the print button in Firefox & pdf vie

Post#6 by fanthom » 21 Jun 2016, 11:28

Great - thank you for sharing!
Please add [Solved] to your thread title if the solution was found.

Locked