Summary: | PDF links -> SVG | ||
---|---|---|---|
Product: | poppler | Reporter: | rdtennent |
Component: | glib frontend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
rdtennent
2014-03-09 16:59:29 UTC
It's easy enough to access the necessary information using poppler_page_get_link_mapping; but I don't see any way to add xlinks to the svg surface other than by adding them to the svg file: LinkMappings = poppler_page_get_link_mapping (page); for (l = LinkMappings; l != NULL; l = l->next) { PopplerLinkMapping *plm = l->data; PopplerRectangle rect = plm->area; PopplerAction *act = plm->action; if (act->type == POPPLER_ACTION_URI) { fprintf ( nsvg, "<a xlink:href=\"%s\" target=\"_blank\">\n", act->uri.uri); fprintf ( nsvg, "<rect fill-opacity=\"0.0\" "); fprintf ( nsvg, "x=\"%5.3f\" y=\"%5.3f\" ", rect.x1, height-rect.y2); fprintf ( nsvg, "width=\"%5.3f\" height=\"%5.3f\"/></a>\n", rect.x2-rect.x1, rect.y2-rect.y1); } -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/497. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.