Re: [RFC][PATCH] Add API for metadata annotation to PDF surfaces
Adrian Johnson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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: https://people.freedesktop.org/~ajohnson/pdf-tagged-text.out.pdf You can view the document structure with "pdfinfo -struct" or "pdfinfo -struct-text" using poppler 0.42 or later. -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo