Printing in landscape mode

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
User avatar
Samoht
Ronin
Ronin
Posts: 1
Joined: 23 Jun 2016, 21:48
Distribution: Porteus Kiosk
Location: Texas, US

Printing in landscape mode

Post#1 by Samoht » 23 Jun 2016, 22:01

Just started using this to help my wife at the church where she works to create simple, bulletproof kiosks from older laptops. Porteus-kiosk is awsome! Perfect fit. Having worked in the industry for 25 years as a UNIX admin, I'm very impressed with the work done with this. Thank you and well done.

I am, though, running into one minor issue. It has to do with printing labels. I can get the software to send the label through to the attached printer with no issues. All of the custom margin settings I've made in a .js file seem to be working. The one piece that I can't figure out is getting the data to print in landscape mode. The only way I can get it to work is by clicking on the print button in Firefox, selecting landscape and closing the print dialogue.

The installation is version 4.0.0. It is configured to download the parameter file from a web site. Here's the contents:

Code: Select all

connection=wired
network_interface=eth0
dhcp=yes
browser=firefox
managed_bookmarks=https://fbcfrisco.ccbchurch.com/checkin_login.php https://fbcfrisco.ccbchurch.com/w_form_list.php
homepage=https://fbcfrisco.ccbchurch.com/checkin_login.php
kiosk_config=http://www.tjsimerson.org/fbc/kiosk-config-remote.txt
allow_popup_windows=yes
printer_connection=direct
printer_model=DYMO LabelWriter 450 Turbo
root_password=P@ssw0rd
silent_printing=yes
timezone=America/Chicago
whitelist=https://fbcfrisco.ccbchurch.com https://cdn[1-9].ccbchurch.com http://www.fbcfrisco.org http://www.firstbaptist https://ajax.googleapis.com/ajax http://fonts.googleapis.com
disable_zoom_controls=yes
additional_components=uefi.zip 10-printing.xzm 
browser_preferences=http://www.tjsimerson.org/fbc/kiosk-firefox-prefs.js
This in turn references a Firefox prefs file which contain this:

Code: Select all

// Printer settings
user_pref("print.show_print_progress","false");
user_pref("print.always_print_silent","true");
user_pref("print.print_footercenter","");
user_pref("print.print_footerleft","");
user_pref("print.print_footerright","");
user_pref("print.print_headercenter","");
user_pref("print.print_headerleft","");
user_pref("print.print_headerright","");
user_pref("print.print_margin_bottom","0");
user_pref("print.print_margin_left","0.3");
user_pref("print.print_margin_right","0");
user_pref("print.print_margin_top","0");
user_pref("print.print_orientation","1");
user_pref("print.print_shrink_to_fit","false");
user_pref("print_printer","kiosk-printer");
Anyone have any tips or ideas what I've missed? Please let me know if there is any other information I can provide. Thanks in advance for the help.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4613
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Printing in landscape mode

Post#2 by fanthom » 24 Jun 2016, 08:00

Hello Samoth,

From my experience I can tell that not every printing setting gets saved in the Firefox preferences. Unfortunately this eapplies to Chrome as well.

The only way of forcing certain parameters is to edit PPD file and change defaults in it (e.g. from portrait to landscape mode).

I won' tell you what exactly needs to be changed as I'm not familiar with this particular driver. Please experiment and share what you find.

Thank you.
Please add [Solved] to your thread title if the solution was found.

Post Reply