-
June 8th, 2018, 16:39 #1
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".
-
June 8th, 2018, 17:25 #2
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!
-
June 8th, 2018, 18:25 #3
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.
-
June 8th, 2018, 21:29 #4
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 docsLast edited by Minty23185Fresh; June 15th, 2018 at 17:07.
-
June 9th, 2018, 00:15 #5
-
June 9th, 2018, 00:40 #6
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.
-
June 9th, 2018, 10:27 #7
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
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
-
June 9th, 2018, 11:22 #8
-
June 10th, 2018, 05:05 #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