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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 21 12:57:03 UTC 2016


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

--- Comment #55 from Masamichi Hosoda <trueroad at trueroad.jp> ---
(In reply to Carlos Garcia Campos from comment #52)
> (In reply to Masamichi Hosoda from comment #50)
> > (In reply to Carlos Garcia Campos from comment #48)
> > > (In reply to Adrian Johnson from comment #35)
> > > > Carlos, do you have an opinion on whether to return a GList of names or
> > > > binary tree of names/LinkDests?
> > > 
> > > I guess we could return a GTree, but I'm not sure I understand exactly what
> > > we want. Do we need the list to be in a specific order? Do they have an
> > > order in the PDF document that we should respect or alphabetical is what
> > > want?
> > 
> > I don't matter either GHash or GTree.
> > I'd like either of the followings:
> >   GTree with GBytes keys and PopplerDest value
> >   GHash with GBytes keys and PopplerDest value
> > 
> 
> That doesn't answer the questions, Do we need the list to be in a specific
> order? Because if the order doesn't matter it's probably easier to use
> GHashTable, otherwise I guess we need a GTree.

If I understand correctly, GTree provides sorted order.

If something like ambiguous search is necessary, GTree may be better.
But, I don't think of the other applications which need sorted order.

If exact match search is all that is needed, GHashTable is better.
Although even if sorted order is necessary, we can sort the keys of GHashTable
later.
After receiving GHashTable from glib frontend, we can build GTree from all
elements of GHashTable.

-- 
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/20160921/d0be414d/attachment.html>


More information about the Poppler-bugs mailing list