I believe it introduces the .setpdfwrite command, so you would need to
remove it too:

https://www.ghostscript.com/doc/current/Use.htm

-c token ...
> -c string ...Interprets arguments as PostScript code *up to the next
> argument that begins with "-" followed by a non-digit*, or with "@". For
> example, if the file quit.ps contains just the word "quit", then -c quit
> on the command line is equivalent to quit.ps there. Each argument must be
> valid PostScript, either individual tokens as defined by the token
> operator, or a string containing valid PostScript.


Leaving the "-c"  isn't causing any harm in this case due to the statement
in bold above, but it should be removed to be proper/safe.

FWIW the gs(1) man page on my system did not cover -c, but the docs do.


On Thu, Jan 13, 2022 at 5:29 PM Vieri <rentor...@yahoo.com.invalid> wrote:

> Thanks, Jonathan.
>
> With guacd GIT there's only one place to delete which is:
>
> --- a/src/protocols/rdp/print-job.c     2022-01-13 23:56:09.624104530 +0100
> +++ b/src/protocols/rdp/print-job.c     2022-01-14 00:11:11.980761279 +0100
> @@ -46,7 +46,6 @@
>      "-sDEVICE=pdfwrite",
>      "-sOutputFile=-",
>      "-c",
> -    ".setpdfwrite",
>      "-sstdout=/dev/null",
>      "-f",
>      "-",
>
> I don't know what the "-c" option does as I haven't found it in the man
> page. I'm supposing it has nothing to do with .setpdfwrite.
> In any case, I compile guacamole-server with this patch, and I can confirm
> that printing to PDF finally works.
>
> Is a bug report necessary?
>
> Thanks again,
>
> Vieri
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
> For additional commands, e-mail: user-h...@guacamole.apache.org
>
>

-- 
Jonathan Hankins

Homewood City Schools

W: 205-877-4548

-- 
This e-mail is intended only for the recipient and may contain confidential 
or proprietary information. If you are not the intended recipient, the 
review, distribution, duplication or retention of this message and its 
attachments are prohibited. Please notify the sender of this error 
immediately by reply e-mail, and permanently delete this message and its 
attachments in any form in which they may have been preserved.

Reply via email to