[Poppler-bugs] [Bug 79936] New: Add support for printing to a Windows printer from pdftocairo

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 12 02:24:55 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=79936

          Priority: medium
            Bug ID: 79936
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: Add support for printing to a Windows printer from
                    pdftocairo
          Severity: enhancement
    Classification: Unclassified
                OS: Windows (All)
          Reporter: rodrigorivascosta at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: cairo backend
           Product: poppler

Created attachment 100911
  --> https://bugs.freedesktop.org/attachment.cgi?id=100911&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20140612/d80ce950/attachment.html>


More information about the Poppler-bugs mailing list