You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Jimmy (Jira)" <ji...@apache.org> on 2022/01/25 17:50:00 UTC
[jira] [Created] (GUACAMOLE-1522) Printing is slow for some PDF document
Jimmy created GUACAMOLE-1522:
--------------------------------
Summary: 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
Fix For: 1.5.0, 1.4.0
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 use Ghostscript to convert them to PDF documents, Ghostscript works quickly.
```
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
```
I hope the Apache Guacamole developer team solves this issue.
Thanks.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)