<div dir="ltr">Hi, <div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 25, 2017 at 8:01 PM, Albert Astals Cid <span dir="ltr"><<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We have "very basic" XMP metadata support, i.e. we "can read it" in<br>
Catalog::readMetadata and pdfinfo -meta dumps it<br>
<br>
But that's it.<br>
<br>
The ISO spec says that "the metadata stream shall be taken as authoritative<br>
[given some conditions]" and we're not obeying that in say pdfinfo.<br>
<br>
I guess we should at least support the dc: and xmp: entries that are similar<br>
to the catalog info document, e.g. dc:title dc:creator xmp:CreateDate<br>
<br></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Question is where to do this:<br>
* in pdfinfo<br>
* in poppler core<br>
<br></blockquote><div>For the basic stuff, I would do something like... </div><div><br></div><div>doc->getTitle()</div><div><br></div><div>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, </div><div>as we need to use the same code in pdfinfo, evince, okular, etc. And reading xmp would add us only a dep on </div><div>a small library like libxml or so. </div><div><br></div><div>Regards</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In pdfinfo is easier since we don't have to build lots of classes around it,<br>
but that means that for example I would have to do the same code in Okular<br>
which is not particularly great.<br>
<br>
Opinions?<br>
<br>
Cheers,<br>
Albert<br>
______________________________<wbr>_________________<br>
poppler mailing list<br>
<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/poppler" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/poppler</a><br>
</blockquote></div><br></div></div>