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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 7 13:03:32 UTC 2016


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

--- Comment #63 from Masamichi Hosoda <trueroad at trueroad.jp> ---
I've noticed that another way.

GTree provides sorted order.
GHashTable provides unstable order.
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.

So I propose that using GPtrArray with the following structure.

struct PopplerNamedDest {
        GBytes *name;
        PopplerDest *dest;
};

If you would like sorted order, you can use g_ptr_array_sort ().
If you would like to find name, you can build GHashTree from GPtrArray.

How about this?

-- 
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/2350c2ec/attachment.html>


More information about the Poppler-bugs mailing list