Hi,

On Mon, Sep 25, 2017 at 8:01 PM, Albert Astals Cid <aa...@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
>
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to