[poppler] XMP support

jose.aliste at gmail.com jose.aliste at gmail.com
Tue Sep 26 10:59:14 UTC 2017


Hi,

On Mon, Sep 25, 2017 at 8:01 PM, Albert Astals Cid <aacid at kde.org> wrote:

> We have "very basic" XMP metadata support, i.e. we "can read it" in
> Catalog::readMetadata and pdfinfo -meta dumps it
>
> But that's it.
>
> The ISO spec says that "the metadata stream shall be taken as authoritative
> [given some conditions]" and we're not obeying that in say pdfinfo.
>
> I guess we should at least support the dc: and xmp: entries that are
> similar
> to the catalog info document, e.g. dc:title dc:creator xmp:CreateDate
>
>
Question is where to do this:
>  * in pdfinfo
>  * in poppler core
>
> For the basic stuff, I would do something like...

doc->getTitle()

If there is no xmp, then get the title from the catalog, else, get the
title from xmp. And I would do that in core,
as we need to use the same code in pdfinfo, evince, okular, etc. And
reading xmp would add us only a dep on
a small library like libxml or so.

Regards



> In pdfinfo is easier since we don't have to build lots of classes around
> it,
> but that means that for example I would have to do the same code in Okular
> which is not particularly great.
>
> Opinions?
>
> Cheers,
>   Albert
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20170926/47b79291/attachment.html>


More information about the poppler mailing list