[poppler] OutputDev for a win32 HDC

Carlos Garcia Campos carlosgc at gnome.org
Wed May 19 12:03:28 PDT 2010


Excerpts from Reece Dunn's message of mié may 19 20:03:12 +0200 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).

Yes, CairoOutputDev takes a cairo context, so you can create a cairo
context for a win32 surface. 

> - Reece
-- 
Carlos Garcia Campos
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20100519/2e993a06/attachment.pgp>


More information about the poppler mailing list