[Poppler-bugs] [Bug 97262] Enumerate PDF named destinations
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Sep 13 13:50:27 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=97262
--- Comment #45 from Masamichi Hosoda <trueroad at trueroad.jp> ---
I think that we don't need further discussion on the core patches.
(v2-0001, v2-0002, v3-0003)
So would you commit them?
But, we seem to need more discussion on the glib patches.
(v2-0004, v2-0005, v2-0006, v2-0007)
Again, I'd like to iterate all named destinations in a PDF.
There are two ways, hash and list.
If you just would like all of the names, list would be good.
If you would like all of the names and the destinations, hash would be good.
If only the list interface has been provided,
you need to find a destination from the name.
But, current poppler_document_find_dest () cannot handle the name which
contained \0.
I know that an escape is one of the solutions.
I worry about the behavior of many applications that do not consider the
escape.
In addition, I'd like to use raw binary since the escape is troublesome.
So I proposed raw binary finding function poppler_document_find_dest_bytes ().
If the hash interface (my imprementation) has been provided,
you can find any named destination, including \0.
In this case, both poppler_document_find_dest () and
poppler_document_find_dest_bytes ()
are unnecessary.
The list interface is also unnecessary.
Only the hash interface,
poppler_document_build_dests_hashtable ()
is necessary.
I think that it is simple.
So I'd like 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/20160913/a0696211/attachment.html>
More information about the Poppler-bugs
mailing list