Open Vincent-Stragier opened 1 year ago
@Vincent-Stragier Well, PDF can contain graphic objects which are technically "drawn" by commands in a coordinate system. PDF also supports different transformations of such graphics. At this moment all graphic objects and commands are available as raw data (canvas.text_content
, see for example https://pdfreader.readthedocs.io/en/latest/examples/extract_page_text.html)
I can't say from the top of my head now to convert those commands into pixelated images in an easy way.
Feel free to contribute to the project if you find anything.
Hello,
I'm trying to automate the extraction of figures from articles to easily integrate them in my reports, but I am not able to extract the vectorized figures.
For the rasterized figures, I can use the following and even, I'm not extracting the
inline images
:Any idea on how I could also extract the figures from a document like this one?