[Poppler-bugs] [Bug 75953] New: PDF links -> SVG

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 9 09:59:29 PDT 2014


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

          Priority: medium
            Bug ID: 75953
          Assignee: poppler-bugs at lists.freedesktop.org
           Summary: PDF links -> SVG
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: rdtennent at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: glib frontend
           Product: poppler

I'm using pdf2svg from http://www.cityinthesky.co.uk/opensource/pdf2svg/
toconvert PDF pages to SVG images. The key steps are as follows:

    // Open the SVG file
    surface = cairo_svg_surface_create(svgFilename, width, height);
    drawcontext = cairo_create(surface);

    // Render the PDF file into the SVG file
    poppler_page_render(page, drawcontext);
    cairo_show_page(drawcontext);

For my purposes, this works well, with one exception: clickable
links in the PDF page are not converted into links in the SVG image.

SVG supports simple xlinks and cairo has a function
cairo_surface_set_mime_data with CAIRO_MIME_TYPE_URI as a supported
mime type. I believe links on a PDF page are available using
poppler_page_get_link_mapping.

Seems like this would be a useful enhancement to 
poppler_page_render for an svg_surface.

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


More information about the Poppler-bugs mailing list