[cairo] Cleaning up the PDF API

Owen Taylor otaylor at redhat.com
Mon May 16 20:35:20 PDT 2005

On Mon, 2005-05-16 at 20:13 -0700, Keith Packard wrote:
> On Mon, 2005-05-16 at 22:55 -0400, Kristian Høgsberg wrote:
> > cairo_pdf_surface_create_for_stream() on the other hand, will use the
> > closure for a longer time, specifically, the created pdf surface will
> > continue to reference it and use it *after* the function call returns.
> There are many operations which the application may want to perform
> while cairo is busy with the file.  I see the application needing to
> output lots of information after each page, and more information at the
> end of the file.  I think we can make 'cairo_show_page()' and
> 'cairo_finish()' flush the file without performance problems, but that
> leaves the application needing to perform surface-specific operations at
> each of these points.

I'm lost here ... what do I want to do with a half-written PDF file
after calling show_page()? (A PDF file has no meaning until finish()
time, since the central index lives at the end of the file.)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050516/db8074db/attachment.pgp

More information about the cairo mailing list