[poppler] OutputDev for a win32 HDC

Reece Dunn msclrhd at googlemail.com
Wed May 19 11:03:12 PDT 2010


On 19 May 2010 17:57, Alexander Cohen <naftaly at me.com> wrote:
> Hello,
>
> Does poppler have an OutputDev for a win32 HDC by any chance? I need to send some PDF's to the printer so i use poppler to convert the PDF to postscript, but not all support ps, so support for an HDC would be great.

Poppler provides a CairoOutputDev. Cairo supports HDC-based surfaces
(http://cairographics.org/manual/cairo-win32-surface.html). You should
be able to use this to render to a HDC.

Not sure if poppler supports changing the cairo surface, though
(shouldn't be difficult to do -- just provide a surface as a
constructor argument to CairoOutputDev).

- Reece


More information about the poppler mailing list