DICE PACKS BUNDLE
  1. #1
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29

    Extracting images from a PDF - I must be missing something...

    I'm wading through the numerous threads that discuss image extraction/copying from a PDF, looking for the right tool for the job. Numerous applications are mentioned. What I am failing to see is why one needs to employ any of them when Adobe (PDF) Reader works just fine.

    I have an adventure that I bought from DriveThru RPG. I am trying to convert or migrate it over to a Fantasy Grounds module. In addition to all the text I want to include the images. The images appear to be raster based embedded graphics. The PDF is watermarked so DriveThru has password protected it to prevent editing/modification.

    For the sake of argument let's assume Adobe Reader (free, no cost) is the industry default PDF viewer/reader. If I open the adventure in Adobe Reader I can click on an image to select it, then copy it to the Windows clipboard using Ctrl-C or right clicking and Copy Image. From there I can paste the copied image to the application of my choice (say Window Paint) and save it to disk as a single extracted image (for example .png).

    I tried this with various other tools and applications, with varying results. But if an when I was successful my resultant .png file was of no better quality than the simple copy image related above. So why use something other than the default PDF viewer.

    Here are programs/applications that I tried, all of them saved the image as a 897 X 665 pixel, 24 bit color depth .png file:
    Adobe (PDF) Reader
    Adobe Photoshop Elements - would not open the PDF because of the password
    Adobe Photoshop Elements - could paste into Elements from Adobe Reader
    Corel Painter Elements (raster based image editor, like Photoshop - could not open a PDF)
    Corel Painter Elements - could paste into application from Adobe Reader
    Krita (free raster based image editor) - able to open PDF and extract multiple images
    Gimp - I don't use Gimp, I use Krita instead
    Microsoft Paint - could paste into application from Adobe Reader
    Paint.net - could paste into application from Adobe Reader
    Inkscape (free vector based image editor, like Adobe Illustrator) - open multiple images for extraction
    ExtractPDF (web based image extractor) - multiple images from a single PDF

    So I will reiterate the question: Why use another application such as Photoshop, Corel, Gimp, Krita, etc, etc, instead of the industry default Adobe Reader and the free with Windows, Microsoft Paint?

    (as a caveat, there are other factors to consider based on the internal configuration of the PDF, but we'll see how this discussion shakes out before addressing those.)
    Current Projects:
    Always...
    Community Contributions:
    Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
    Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Adobe Reader won’t allow copying of every image from all PDFs. Some security/PDF layouts don’t allow it.

    Also, some images copied this way will have the background transparency layer come through as a very ugly black background, that can be a pain to 100% get rid of.

    Also, it can be a laborious task to manually copy/paste/save each image for a big PDF. Some image extraction processes will get all of the images out at once.

    In the end, go with what works for you for the PDFs that you use and the end result you require.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,243
    Blog Entries
    9
    As Trenloe says, it depends on the original PDF.

    The other thing I've had, is sometimes the image comes out through a cut and paste mirrored.

    Apparently the layout or something mirrors it. Adobe Reader is currently my default PDF viewer, so I try that first. When it doesn't work I try Gimp. Then sometimes other things if I have to.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  4. #4
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29
    Okay, I was missing something... An uncooperative PDF! I just got lucky I guess.

    So I'll continue to compile a list of extractors and editors people mention in the forums. I'll also try to compile a list of issues that cause one to have to search for an alternative solution to Adobe Reader and one's favorite editor.

    Thanks for the help.

    (As I was compiling information I used this post as my scratch area. All that information has been summarized here.

    These are some of the threads I read through (among others), as of June 15, 2018:
    "PDF" threads, Google site search results, by relevance:
    Newbie question: Export to PDF
    PDF Import To Library. Can it happen?
    How To Extract Images From A PDF
    How to import Adventures from pdf format?
    Extracting graphics from a PDF
    How to Convert PDF to FG
    Transferring tables in a .pdf in to Fantasy Grounds
    Cleaning up ugly PDF's for copying and pasting
    AL module conversion from PDF to FG
    Copying images from Pdf
    Capturing images from PDF docs
    Last edited by Minty23185Fresh; June 15th, 2018 at 17:07.

  5. #5
    I have found that Acrobat does the best job. But the cost is high for just the ability to remove Images from a PDF.
    I have a friend that likes foxit (I think it's called) But I have never used it!

    Madman..
    "Over thinking, over analyzing separates the body from the mind."...MJK... Tool frontman




  6. #6
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,243
    Blog Entries
    9
    I've used Foxit, year ago it was incredible fast on startup and opening files.

    I've also used PDF X-change Editor. I think it has changes it's name. It had a very functional free editor and a pretty inexpensive full package.

    Haven't used either in awhile.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  7. #7
    Have a look at a script I wrote using a 3rd party utility:

    https://www.fantasygrounds.com/forum...ges-From-A-PDF

    It extracted 1,300 images in about 15 seconds.
    Ultimate License
    UK Time Zone (GMT/BST)
    DM'ing since 1977 (Basic D&D)

    Currently Playing:
    Empire of the Ghouls 5E Campaign
    Tales from the Yawning Portal 5E Campaign
    Rise of the Runelords Pathfinder 1e
    Amazing Adventures 5E Campaign
    "Some are born to move the world, to live their fantasies
    But most of us just dream about the things we'd like to be."
    Rush - Losing It


    Currently DM'ing
    Princes of the Apocalypse 5E Campaign
    Waterdeep: Mad Mage 5E Campaign
    The Blight 5E Campaign

  8. #8
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Quote Originally Posted by ColinBuckler View Post
    Have a look at a script I wrote using a 3rd party utility:

    https://www.fantasygrounds.com/forum...ges-From-A-PDF

    It extracted 1,300 images in about 15 seconds.
    I have used your script successfully.

  9. #9
    I had to manually rename the PDF file to z.pdf to get it to work, but then it took like a second to rip out all of the files from it — even when I gave it administrative rights and allowed it to change the file through my virus checker.

    That is fine with me, though — minimal effort for maximum results.
    Proud Ultimate License Holder
    Also have bought a lot of other 5E and other , incl. Savage Worlds, Mutants & Masterminds, and Pathfinder 2e
    Central Time Zone (living in the USA, although born on the eastern shores of Canada)
    Have Played All D&D Editions except for 3/3.5 (am familiar with those rules, tho)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in