Home:ALL Converter>Ways to extract images from pdf using R

Ways to extract images from pdf using R

Ask Time:2020-11-14T02:06:28         Author:Bahi8482

Json Formatter

Is there a way to extract images from pdf using R and save them into a folder? there are a lot of similar questions regarding other programming languages and there is apparently a way to do this in python, was wondering if the same work can be replicated in r https://www.thepythoncode.com/article/extract-pdf-images-in-python

there is pdftools package in r but does not sound like it can help much with images, only reads text and there is an option for ocr, I just want to extract the images and store them into a folder.

I can try to use reticulate package to use this python method in r but I won't be able to loop / map it as I would like. That's why I was asking if anyone knows a way in R.

thank you.

Author:Bahi8482,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64825875/ways-to-extract-images-from-pdf-using-r
yy