pdfplumber icon indicating copy to clipboard operation
pdfplumber copied to clipboard

Extract SVG Images

Open emadg opened this issue 3 years ago • 4 comments

I have a PDF with SVG images,

when I tried parsing a page, I noticed SVG images are not detected by PDF Plumber.

Extracting those SVG or vectorized images are very important for my usecase.

Is there a way to do that in current version or not? Any guidance on how to do this?

emadg avatar Jun 25 '21 18:06 emadg

This library does not currently have explicit methods for extracting SVG images, but it seems like a feature worth considering the the future. Do you have an example PDF you can share?

jsvine avatar Jul 01 '21 02:07 jsvine

@jsvine Hey thanks for replying! I have a PDF but its confidential ... I will try to find a good public one and reply here.

emadg avatar Jul 05 '21 16:07 emadg

@jsvine

PDF sample from here: https://www.manualslib.com/manual/975349/Subaru-Eyesight.html I found this PDF which is similar to what I am working on, and includes SVG images.

eyesight.pdf

emadg avatar Jul 07 '21 23:07 emadg

Thank you for sharing that, @emadg. I haven't found the time to dig into this yet, but also haven't forgotten about it 👍

jsvine avatar Aug 31 '21 13:08 jsvine