[cairo] [RFC][PATCH] Add API for metadata annotation to PDF surfaces

Adrian Johnson ajohnson at redneon.com
Sat Oct 1 13:33:21 UTC 2016

On 01/10/16 00:38, Peter TB Brett wrote:
> On 30/09/2016 15:51, Adrian Johnson wrote:
>> On 30/09/16 23:00, Peter TB Brett wrote:
>>> This patch adds an API for PDF surfaces for adding PDF metadata.  The
>>> public API encompasses:
>>> - metadata strings
>>> - internal links and URI links
>>> - destination dictionary entries
>>> - document outline entries
>> I don't know if you have see the PDF API I posted in June:
>> https://lists.cairographics.org/archives/cairo/2016-June/027427.html
>> I was only a day away from pushing it out. I have just been creating a
>> test case and finishing the documentation. I've pushed out my branch to:
>> https://cgit.freedesktop.org/~ajohnson/cairo/log/?h=pdf-features
> I didn't see this.  Thanks for pointing it out.
> The patch I posted is a cleaned-up version of a patch that we've been
> using in production for several years.
> What are the main barriers to getting your PDF links/metadata API
> merged?  If there was a supported upstream cairo API for doing this
> stuff then we'd definitely move over to using it.

I've pushed out the API to master. Here is the output from the pdf
tagged text test case that demonstrates the features:


You can view the document structure with "pdfinfo -struct" or "pdfinfo
-struct-text" using poppler 0.42 or later.

More information about the cairo mailing list