<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rodrigorivascosta@gmail.com" title="rodrigo <rodrigorivascosta@gmail.com>"> <span class="fn">rodrigo</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add support for printing to a Windows printer from pdftocairo"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79936">bug 79936</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Attachment #100911 is obsolete</td>
<td>
</td>
<td>1
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add support for printing to a Windows printer from pdftocairo"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79936#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add support for printing to a Windows printer from pdftocairo"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79936">bug 79936</a>
from <span class="vcard"><a class="email" href="mailto:rodrigorivascosta@gmail.com" title="rodrigo <rodrigorivascosta@gmail.com>"> <span class="fn">rodrigo</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=103579" name="attach_103579" title="New version of the patch with new command line style">attachment 103579</a> <a href="attachment.cgi?id=103579&action=edit" title="New version of the patch with new command line style">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=79936&attachment=103579'>[review]</a>
New version of the patch with new command line style
Hi!
>From Adrian Johnson's comments in the mailing list, I've updated the patch. The
printing code is exactly the same, but the command line options are different.
Now:
-print: Print to a system printer, instead of a file.
-printer <name>: Use printer <name>. If not specified, it uses the default
system printer.
-printopt <options>: Configure the printer using <options>. It is a comma
separated list of options, of the form <opt1>=<val1>[,<optN>=<valN>]*.
Currently, there are only the following options in -printopt:
* 'source': Choose the paper source. The value is one of: 'upper', 'onlyone',
'lower', 'middle', 'manual', 'envelope', 'envmanual', 'auto', 'tractor',
'smallfmt', 'largefmt', 'largecapacity', 'formsource' or an integer constant
for printer specific sources.
* 'duplex': Set the duplex mode. One of: 'simplex', 'horizontal', 'vertical'.
Some random comments:
* The linker needs the `-lwinspool` option. I've modified configure.ac to add
it to every Win32 command. It should be harmless, but there may be other better
options.
* The '-printopt duplex' option somewhat overlaps with the '-dupex' option,
but I'm not sure if it is wise to mix them ('-dupex' is a boolean, but
-'-printopt duplex' has three values).
* There are many more '-printopt' to be added, and some overlap with older
options, such as '-duplex' and '-paper' and maybe others. I don't know exactly
what should be done with them.
* If we add more '-printopt', then it may be prudent to split the parsing
functions into a separated file. That may complicate the Makefile, but make the
code easier to work with. I have no preference about it...
* There is a bug in the latest cairo release (1.12.16, maybe others too) that
prevents the Win32 printer backend to work at all. I've sent a patch at [1]
that seems to fix it.
Thank you!
--
Rodrigo Rivas
[1]: <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Win32 printer backend fails with scaled_font->cache_frozen assertion"
href="show_bug.cgi?id=81709">https://bugs.freedesktop.org/show_bug.cgi?id=81709</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>