hughsie / printerd

Printer daemon
GNU General Public License v2.0
11 stars 2 forks source link

cups-pdf compatibility #9

Closed zabbal closed 9 years ago

zabbal commented 9 years ago

It's unclear from the docs if printerd is compatible with cups-pdf or if there's some equivalent exist. Either way it would be useful for both users and devs (for testing) to have virtual printer which would print any given job into .pdf in preconfigured directory.

twaugh commented 9 years ago

It should be compatible, yes -- good idea.

Once the filter chain is correctly set up (it isn't currently), it should just plug in so you can use cups-pdf device URIs.

twaugh commented 9 years ago

Of course, cups-pdf takes PostScript input, and printerd will require PDF in any case, so I think cups-pdf is of limited use.

What will be more useful for development is implementing file: output, and I have most of that work done.

zabbal commented 9 years ago

Indeed, what I meant is testing scenario for user who do not have any physical printers: uninstall cups, install printerd, select file output while "printing" webpage from the browser - the result should be identical to what I've got if I have cups-pdf installed. That is if I understood correctly goals of printerd to become cups replacement.

twaugh commented 9 years ago

Please take a look at https://github.com/twaugh/printerd/tree/file-output, where I've implemented 'file://'. For example, create /tmp/foo, then "pd-cli create-printer foo file:///tmp/foo". Jobs submitted to printer "foo" will be output to /tmp/foo.

Note that PDF input is required.