Hi Dick, hi x2go-dev list,
I am currently not really happy with the X2goPrintActionPRINT
implementation of Python X2go on Windows (print incoming X2go print
job directly to a printer). Till now, I have used a win32api
ShellExecute call to print the incoming PDF document (that gets posted
to the client by x2goprint). The ShellExec API calls the standard app
for PDF (Acrobat Reader X on my system), but the Acrobat Reader X
(might be an issue of this version only) does not handle the printing
well: an empty Acrobat Reader window remains open after the print job
has been handed over to the GDI print spooler...
What I am currently implementing as first choice printing in Python
X2go is usage of gsprint.exe from gsview/Ghostgum. To use this
printing method the Ghostscript and the Ghostview application has to
be installed on the client. This seems to be the cleaner approach to
printing (that is: diverting the Acrobat Reader). However, this means
an extra app to be either side-installed next to PyHoca-GUI or to be
shipped with PyHoca-GUI itself (which would inflate the setup.exe
tremendously...).
I am currently still playing with gsprint to see if it really works
for PyHoca-GUI, I suppose it will. However, if gsprint is not
installed on the client there will always be a fallback to the
system's standard PDF app via win32api (that is Acrobat Reader in most
cases).
However, maybe someone on the list has another idea about PDF Windows
printing from a Python environment...
Greets + Thanks, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...