Thread: PDF Tiles to Images?
-
April 17th, 2015, 01:51 #11
- Join Date
- May 2013
- Location
- East Coast USA.
- Posts
- 941
-
April 17th, 2015, 03:40 #12
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
April 17th, 2015, 03:41 #13
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
-
April 17th, 2015, 10:34 #14
- Join Date
- Apr 2015
- Posts
- 65
-
April 17th, 2015, 12:36 #15
- Join Date
- May 2013
- Location
- East Coast USA.
- Posts
- 941
-
April 17th, 2015, 19:30 #16
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
The way I do it is:
(1) create a new folder e.g. "C:\PDFimages". also create another folder in the newly created "C:\PDFimages" called "images"
(2) download ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-win-3.04.zip
(3) extract pdfimages.exe from the zip file and copy it to "C:\PDFimages". You may find the other programs usefull - but we do not need them for this exercise.
(4) create a file in "C:\PDFimages" called "run.bat" containing the command "pdfimages.exe -j z.pdf images"
Whenever you want to extract all images from a PDF, copy the PDF into "C:\PDFimages" and rename it to be "z.pdf". Next double click the "run.bat" file which will execute the program extracting all images to the "C:\PDFimages\images" folder.
You can then use the XNconvert to resize/rotate as required.
One thing though, watch changing file formats due to the transparency level in the images. It maybe best to stick with PNG files.
Hope this helps....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
-
April 17th, 2015, 20:57 #17
-
April 18th, 2015, 14:53 #18
- Join Date
- May 2013
- Location
- East Coast USA.
- Posts
- 941
Thank you, that helped a lot. I was a bit confused about whether or not I had to do an additional install. I was able to run pdfimages from a command line.
I have an additional question, that you might be able to help with.
I ran pdfimages -j on a pdf file and I get a mixture of .jpg and ppm files.
The jpgs are negatives of the original black and white images.
Any idea why, and if I have any options to change the contrast scheme back to the original?
Again, thanks for your help!
-
April 18th, 2015, 16:44 #19
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
No problem - not sure about the negetive jpg files. What about the PPM files - do they contain the images you need? Paint.Net / Gimp should be able to open the ppm files if you are having problems.
I have noticed that pdf's behave differently - I think its to do with they way they are put together by the publisher.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
-
April 18th, 2015, 17:02 #20
- Join Date
- May 2013
- Location
- East Coast USA.
- Posts
- 941
Gimp will invert the negative images for me, still strange why it happened on this pdf. - Frandor's Keep (legally purchased pdf). The color images seem to be unaffected.
Now that I look at the ppm files, I am uncertain why they were pulled out. They open with libreDraw by default and each seems to be an icon for a link to the table of contents, which I don't need. I guess the icon is an image.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks