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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 28 02:13:17 PDT 2014


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

rodrigo <rodrigorivascosta at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #100911|0                           |1
        is obsolete|                            |

--- Comment #1 from rodrigo <rodrigorivascosta at gmail.com> ---
Created attachment 103579
  --> https://bugs.freedesktop.org/attachment.cgi?id=103579&action=edit
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]: https://bugs.freedesktop.org/show_bug.cgi?id=81709

-- 
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/20140728/2b37d088/attachment.html>


More information about the Poppler-bugs mailing list