Monday, January 23, 2017

Extract all jpgs from a PDF file

Here's a small tool to extract all jpg pictures inside a PDF file. First you choose the pdf file, then the output directory, where all the jpg files will be saved.



Here the download links:
Windows Link 1 Windows Link 2

Linux Link 1 Linux Link 2

The code I used for extracting the jpgs is taken from here:
http://nedbatchelder.com/blog/200712/extracting_jpgs_from_pdfs.html
I added just the two file/dir windows with the easygui package, and created a standalone file with pyinstaller.

2 comments:

  1. Hey this seems like a good example and kind of what I need to do. Could you be persuaded to put the source code on github so the community can learn from you? Thanks!

    ReplyDelete
  2. Great job, this helped me a lot! Thank you

    ReplyDelete