<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><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">79936</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add support for printing to a Windows printer from pdftocairo
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rodrigorivascosta@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cairo backend
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=100911" name="attach_100911" title="Patch to add printing support to pdftocairo in Win32">attachment 100911</a> <a href="attachment.cgi?id=100911&action=edit" title="Patch to add printing support to pdftocairo in Win32">[details]</a></span>
Patch to add printing support to pdftocairo in Win32

Hello all!

Printing a PDF unattendedly in Linux is easy. But in MS-Windows, it is not.
I've been looking for a solution for ages and found nothing! Then, I realized
that "pdftocairo" just renders a PDF to a Cairo contexts, and a Cairo context
in Win32 can be a printer.

I've written a patch (for 0.26.1) that adds that functionality to "pdftocairo".
It still misses documentation changes, but I'm willing to add that too, if/when
it is accepted.

Basically, it adds two command line options:

  -prn: Instead of an image, it should render the output to a printer. The name
of the printer will be "output-file", or the default printer if no name is
specified.
  -prnsource <src>: The paper source of the printer. It corresponds to the
DMBIN_* enumeration from Windows headers, so: 0=default, 4=manual, 7=auto. The
default is "default".

--
Rodrigo Rivas</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>