<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<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#c8">Comment # 8</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:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
<pre>I finally found some time to look at this bug again. I will attach some patches
that fix a number of issues. Have a look and check that I have not broken
anything.
The major fix is the for the page size issue. I have fixed it to make all the
various options (-paper, -origpapersizes, -noshrink, -nocenter) work. I had the
same issue you mentioned with images not appearing. I have fixed it in cairo.
The patch is:
<a href="http://cgit.freedesktop.org/cairo/commit/?id=0aa43ed886c0f8468a21a470f2f024bd4d8a4513">http://cgit.freedesktop.org/cairo/commit/?id=0aa43ed886c0f8468a21a470f2f024bd4d8a4513</a>
I didn't like #including pdftocairo-win32.cc so I changed it to be a standalone
.cc file. I also added the ability to print to a file by specifying an output
file on the command line.
The only remaining issue I have is with the numeric value for the source
option. If we are going to support non standard sources we should use
DeviceCapabilities() with DC_BINNAMES to obtain the names and allow the user to
enter the text name of the source. Otherwise I suggest removing the numeric
value capability.
I also noticed in the documentation for DocumentProperties() at
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd183576%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/dd183576%28v=vs.85%29.aspx</a>
that we are not doing step 5 in the "To make changes to print settings that are
local to an application, an application should follow these steps:" section. It
seems to work without the extra call to DocumentProperties() but I am wondering
if we should do exactly what the documentation says to do to change the print
settings.</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>