[X2go-dev] Python-X2go printing on Windows
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Fri Feb 25 16:20:42 CET 2011
On Fr 25 Feb 2011 15:50:33 CET Mike Gabriel wrote:
> Hi Dick, hi x2go-dev list,
>
> -----------
> Context: Dick Lindix contracted me to make PyHoca-GUI usable for his
> company software. We are currently testing functionality heavily to
> get it ready for roll-out in his company. I post this mail to the
> x2go-dev list as there might be someone who has an opinion and/or
> idea about the described problem.
> -----------
>
> 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
As gsprint.exe works fabulously with Python X2go printing, it will be
the default print mechanism on Windows with the next python-x2go
release. However, if gsprint.exe is not installed on the client
system, python-x2go will fallback to win32api.ShellExecute (synonymous
for Right-Click on PDF and select ,,Print'').
Greets,
Mike
--
DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20110225/783701e4/attachment.pgp>
More information about the x2go-dev
mailing list