Re: switch printer tray during printing

2013-03-13 Thread Liam R E Quin
On Mon, 2013-03-11 at 16:13 -0500, Michael Cronenworth wrote:

 Changing trays may be out of the question, but I do know that Postscript
 allows per-page paper orientation changes. I have a few PDFs that do so.

You can change paper sizes too, which will generally cause a different
paper tray to be used; you might also be able to tell the printer
directly to switch trays, just as you can turn duplex, stapling and
collation features off and on. I've used software that did this in the
past. Whether gtk can do it I have no idea.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: switch printer tray during printing

2013-03-11 Thread Adam Tauno Williams
On Thu, 2013-02-21 at 14:51 -0600, Michael Cronenworth wrote:
 Michael Cronenworth wrote:
  Does anyone know if GTK allows switching print trays in the middle of a
  GtkPrintOperation?
  I tried setting the source to Tray 2 in the request-page-setup signal
  for the second page, but this did not work. The second page printed to
  Tray 1 (default).
 Old message, but I still wanted to reply for the Google archives.
 I cannot get GTK to change tray during a print job. I had to break the
 print job into two jobs and manually call
 gtk_print_settings_set_default_source() inbetween jobs.
 Ideally GTK should be able to change tray *and* paper orientation/size
 during a print job. There doesn't seem to be an RFE for this, but I
 think it would be a good feature.

I'm not sure this is even possible.   Tray select, duplex, etc... are
often encoded in either the PCL preamble of a print job or in a PJL
envelope [common for Postscript].  They really are attributes of the
*job*.

I'd guess that Gtk/GNOME would have to 'emulate' this behavior by
splitting the ob silently into multiple jobs.  That could get wierd.

-- 
Adam Tauno Williams  GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: switch printer tray during printing

2013-03-11 Thread Michael Cronenworth
On 03/11/2013 03:46 PM, Adam Tauno Williams wrote:
 I'm not sure this is even possible.   Tray select, duplex, etc... are
 often encoded in either the PCL preamble of a print job or in a PJL
 envelope [common for Postscript].  They really are attributes of the
 *job*.

 I'd guess that Gtk/GNOME would have to 'emulate' this behavior by
 splitting the ob silently into multiple jobs.  That could get wierd.

At the time I wrote my message I was under the impression I was sending
one stream of PCL to the printer and switching trays, but in fact I am
sending two separate streams. (with my non-GTK software)

Changing trays may be out of the question, but I do know that Postscript
allows per-page paper orientation changes. I have a few PDFs that do so.

The software that is demanding this is in the pharmaceutical industry
where they need all sorts of odd shaped data to print in different ways
to different paper sizes and trays in one go. I have it working for me
now without too much pain, but if I ever have an epiphany I'll be sure
to share it.

Thanks,
Michael
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: switch printer tray during printing

2013-02-21 Thread Michael Cronenworth
Michael Cronenworth wrote:
 Does anyone know if GTK allows switching print trays in the middle of a
 GtkPrintOperation?

 I tried setting the source to Tray 2 in the request-page-setup signal
 for the second page, but this did not work. The second page printed to
 Tray 1 (default).

Old message, but I still wanted to reply for the Google archives.

I cannot get GTK to change tray during a print job. I had to break the
print job into two jobs and manually call
gtk_print_settings_set_default_source() inbetween jobs.

Ideally GTK should be able to change tray *and* paper orientation/size
during a print job. There doesn't seem to be an RFE for this, but I
think it would be a good feature.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


switch printer tray during printing

2012-10-31 Thread Michael Cronenworth
Does anyone know if GTK allows switching print trays in the middle of a
GtkPrintOperation?

I tried setting the source to Tray 2 in the request-page-setup signal
for the second page, but this did not work. The second page printed to
Tray 1 (default).

Thanks,
Michael
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list