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

Jimmy edited comment on GUACAMOLE-1522 at 4/7/23 5:02 AM:
----------------------------------------------------------

I used *Google Chrome browser* for printing the PDF file.


was (Author: myjimmy):
I've used *Google Chrome browser* for printing 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)

Reply via email to