Thread: How To Extract Images From A PDF
-
October 27th, 2017, 22:13 #1
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
How To Extract Images From A PDF
OK, so you are trying to create your own custom game with images from a PDF - this can be a real pain in the you know what if there are several images and then cutting and pasting from the PDF.
You will be pleased to know there is a much easier way.....
(1) Download the attachment and extract the contents to a folder on your windows PC.
(2) In the extracted folder you will find an "images" folder. Copy the PDF into this folder.
(3) Run the "pdfextract.bat", this will extract the images from the PDF into the "images" folder.
(4) Copy the images your require to another folder.
Note1: This will extract the images at their original resolution.
Note2: Running the "pdfextract.bat" will erase and jpg or ppm files in the folder before extracting the files. The batch file will also rename the pdf to z.pdf
The pdfimages.exe file can be downloaded from https://www.xpdfreader.com/download.html as a part of the Xpdf tools suite .zip file.
Edit: .zip attachment now contains the 32 bit version of Xpdf rather than the 64 bit previously included.Last edited by ColinBuckler; October 28th, 2017 at 12:18.
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
-
October 27th, 2017, 23:34 #2
Nice, I've bookmarked this thread. Sure I will be needing it in the future.
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.
-
October 28th, 2017, 06:02 #3
Does this need to be run as an administrator? I downloaded the zip file here, extracted, put my pdf in the images folder, ran the bat file andI see the screen blink like something ran - but nothing new is in the folder and the pdf isnt renamed.
-
October 28th, 2017, 09:50 #4
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
Hi Talen,
It shouldnt - or it doesnt on my Windows 10 machine here.
Have you copied the pdf into the images folder which must be a subfolder directly beneath the batch & executables.
I just downloaded the zip file and placed it n a temp folder. Copied a 650+ page pdf into the fole images folder and ran the batchfile. It extracted over 1,400 images in about 10 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
-
October 28th, 2017, 12:06 #5
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
Changed the zip file to include the 32 bit version rather than the 64 bit version.
Last edited by ColinBuckler; October 28th, 2017 at 12:19.
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
-
October 28th, 2017, 13:19 #6
All set. Thanks for the suggestion!
-
October 29th, 2017, 20:31 #7
- Join Date
- May 2008
- Posts
- 5
Great Tool, thank you a lot!
I'm going to use this on a regular basis for preparing for my games and will probably find a million other uses for it.
-
March 18th, 2018, 11:22 #8
Hmm for some reason the program isn't saving any files.
I am using the 64 bit one.
There is an image format folder so I am using that.
I can copy and load the pdf file fine.
When I choose save image I get a popup with a jpeg pulldown menu.
I click OK
I get the standard popup save image folder
but cannot save
Rappan 3.pngUltimate License Holder & FGU backer
playing D&D since 1980
Currently GMing:
*Opus Christini Traveller campaign
*
*Currently Playing
*Currently Looking
*
-
March 18th, 2018, 12:17 #9
Im just using the 32bit one and having no issues... maybe give that a try...?
-
March 18th, 2018, 12:20 #10
Indeed I will do that
thanks mateUltimate License Holder & FGU backer
playing D&D since 1980
Currently GMing:
*Opus Christini Traveller campaign
*
*Currently Playing
*Currently Looking
*
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks