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 2023/04/06 19:32:00 UTC

[jira] [Commented] (GUACAMOLE-1522) Printing is slow for some PDF document

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

Mike Jumper commented on GUACAMOLE-1522:
----------------------------------------

When you were connected to the remote desktop using Guacamole, what application was used inside the Windows session to print the PDF file?

> Printing is slow for some PDF document
> --------------------------------------
>
>                 Key: GUACAMOLE-1522
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1522
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole, guacd
>    Affects Versions: 1.4.0
>         Environment: ubuntu 18.04, GhostScript 9.26 (2018-11-20), Windows Server 2019
>            Reporter: Jimmy
>            Priority: Major
>         Attachments: Print-Sample.pdf, print-001.ps, print-002-1.ps, print-003-1.ps
>
>
> I attached a PDF document. (Print-Sample.pdf)
> This document has 5 pages.
> When printing the PDF file on the Apache guacamole, it took more than 30 seconds until the downloading is started.
> Once the downloading is started, it's completed in a short time.
> As a result of my analysis, the call of *read()* function takes a long time in the 
> *guac_rdp_print_job_output_thread()* function. (src/protocols/rdp/print-job.c)
>  
> I captured the print data in the *guac_rdp_print_job_write()* function and saved them to the files.
> I attached some of the print data. (print-001.ps, print-002.ps, print-003.ps)
> When I directly use Ghostscript in the terminal to convert them to PDF documents, Ghostscript works quickly.
> {code:java}
> $ gs -q -dNOPAUSE -dBATCH -dSAFER -dPARANOIDSAFER -sDEVICE=pdfwrite -sOutputFile=print-001.pdf -c .setpdfwrite -f print-001.ps
> $ cat print-001.ps print-002.ps > print-002-full.ps
> $ gs -q -dNOPAUSE -dBATCH -dSAFER -dPARANOIDSAFER -sDEVICE=pdfwrite -sOutputFile=print-002.pdf -c .setpdfwrite -f print-002-full.ps
> $ cat print-002-full.ps print-003.ps > print-003-full.ps
> $ gs -q -dNOPAUSE -dBATCH -dSAFER -dPARANOIDSAFER -sDEVICE=pdfwrite -sOutputFile=print-003.pdf -c .setpdfwrite -f print-003-full.ps{code}
>  
> I hope the Apache Guacamole developer team solves this issue.
> Thanks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)