[poppler] OutputDev for a win32 HDC
Alexander Cohen
naftaly at me.com
Wed May 19 12:45:10 PDT 2010
On May 19, 2010, at 2:03 PM, Reece Dunn wrote:
> 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).
I can;t say for sure, but I think Cairo has a lot of dependencies. The nice thing about and HDC is that everything i need is already on the system, which is something i need for my current project.
AC
More information about the poppler
mailing list