[cairo] pdf encryption, read-write permissions

chris nuernberger cnuernber at gmail.com
Tue Aug 23 13:25:31 PDT 2005


How much in favor would people be of me adding document sort of
capabilities to cairo somehow?  You would have to have a new cairo
datatype that was some sort of pdf document structure, and there you
could generate a set of pdf surfaces, as well as do the contents and
index and whatever else you want in the pdf file.  I understand that
it is a different path, but for people using the cairo renderer
already it makes sense if you want to produce a nice pdf document and
you have some idea how it is laid out (i.e. your rendering algorithm
generates pages anyway).

On 8/23/05, chris nuernberger <cnuernber at gmail.com> wrote:
> OK, what about the host of other PDF things you can do, like chapters
> and pages (navigation on the left)?  All of that stuff is useful,
> especially for large documents.
> 
> On 8/23/05, Kristian Høgsberg <krh at bitplanet.net> wrote:
> > chris nuernberger wrote:
> > > I would love to use cairo as a rendering backend for a tool that I am
> > > writing, but we need a few PDF options and I don't know if they are in
> > > cairo already or what.  I searched the archives a bit but must have
> > > missed the response I am looking for.
> >
> > We haven't discussed this much on the list, but my thinking is that the
> > pdf backend should support much more meta data than it currently does.
> > Encryption is one thing that would make sense to support, but also
> > features such as page labels, table of contents, author, title, creator
> > (the application using cairo) and numerous others.  It's not going to be
> > in 1.0, but the API for this would probably be setters on the PDF
> > surface, e.g. something like
> >
> >         cairo_pdf_surface_set_author (surface, "Jane Austen");
> >
> > and
> >
> >         cairo_pdf_surface_set_section (surface, parent_section, "Font Level
> > Hints");
> >
> > and similiar.
> >
> > cheers,
> > Kristian
> >
>


More information about the cairo mailing list