[Poppler-bugs] [Bug 97262] Enumerate PDF named destinations

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 7 13:52:59 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97262

--- Comment #65 from Masamichi Hosoda <trueroad at trueroad.jp> ---
(In reply to Adrian Johnson from comment #64)
> (In reply to Masamichi Hosoda from comment #63)
> > But, I think that there is a case that the serial (appeared) order in PDF is
> > necessary.
> > In this case, both GTree and GHashTable cannot be used since the serial
> > order is not preserved.
> 
> Poppler Dict objects are sorted and PDF Name trees are required to be
> sorted. The code in Catalog.cc also sorts the name tree as I think there was
> a buggy PDF that did not sort the name tree. As a result, the names will
> always be sorted.
> 
> I think GTree is best as it has the advantage of both sorted order and fast
> lookup.

Thank you for your detailed explanation.

I understand that there is not the serial order.
I withdraw the proposal of GPtrArray.

Therefore, I also think that GTree is best.

Would you merge v3-tree-0001 patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20161007/f6608d05/attachment.html>


More information about the Poppler-bugs mailing list