You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2020/09/06 03:37:00 UTC

[jira] [Commented] (GUACAMOLE-1129) PDFs get enourmous when printing via rdp on Windows10

    [ https://issues.apache.org/jira/browse/GUACAMOLE-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17191183#comment-17191183 ] 

Mike Jumper commented on GUACAMOLE-1129:
----------------------------------------

The printer in Guacamole's case is simply Windows' standard PostScript printer ("MS Publisher Imagesetter"). The server side of Guacamole simply receives the PostScript data and produces a PDF from that using an instance of the command line GhostScript tool. There is nothing Guacamole can do to influence the size of the PostScript data within Windows's own print queue, and some applications will produce quite a large file (even if the PDF ultimately produced from that file is not so large).

If there is a similar, standard Windows printer driver which supports arbitrary PDF printers, then Guacamole could optionally leverage that and receive PDF data directly. That might avoid an intermediate step involving a potentially large PostScript file. Other than that, this really isn't a Guacamole issue nor a bug. It's just the current reality of Windows' production of PostScript for some printed documents.

> PDFs get enourmous when printing via rdp on Windows10
> -----------------------------------------------------
>
>                 Key: GUACAMOLE-1129
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1129
>             Project: Guacamole
>          Issue Type: Bug
>          Components: RDP
>    Affects Versions: 0.9.14, 1.2.0
>         Environment: CentOS 7, Debian10, Docker 
>            Reporter: Heiko Beisswenger
>            Priority: Major
>              Labels: Guacamole, Print, Windows-10
>
> I hope that this is the right place to ask for help on this issue.
> I have tested this on guacamole version 1.2 installed natively on a CentOS 7.8 , on a CentOS 7.7 native installation with guacamole version 0.9.14 and on a docker setup on Debian Buster OS.
> The results were on all setups identical.
> I try to print from a windows 10 client connected via rdp session (pdf download).
> Printing small documents like text only work without problems. 
> I get the pdf download as expected after a short period of time.
> As soon as I try to print larger files with images in it, the resulting pdfs get very big or can't even be downloaded.
> One document I've run tests on is a 628 pages pdf document with pictures and diagrams in it, which original size is 17MB.
> I've printed the first 50 pages wich took about 10 minutes and the resulting pdf was 26MB big.
> Printing the first 20 pages, results in a 10 MB pdf file takes about 4 minutes.
> If I try to "print" more than 50 pages ghostscript works on 100% CPU but won't finish in a reasonable time period.
> Then I took other documents, which one of our customers wanted to print. These are scanned documents with only 4-6 pages, only images. original size 2-4 MB. 
> The Windows 10 printqueue says that the resulting document will be 96MB big. But due to timeout issues it's not available to download at all.
> I did little research and Microsoft says to change the printer settings to "Print directly to the printer".
> https://support.microsoft.com/en-us/help/919543/the-size-of-the-emf-spool-file-may-become-very-large-when-you-print-a
> But It is not possible to change this setting in the guacamole-printer settings.
> I've also tested against another Windows 10 system, same problem here.
> The same tests were run on a Windows 7 system and this dos not show this behavior.
> So this is a Windows 10 guacamole-printer issue.
> Is there any configuration without altering the code that can be changed to make things work again ?
> Thanks
> Heiko



--
This message was sent by Atlassian Jira
(v8.3.4#803005)