PDA

View Full Version : Copying images from pdf files



philth
November 26th, 2009, 01:26
Hey all, I used to have Acrobat 7 and just needed to right click on an image in the pdf and it would bring up a menu where I could select Save Image As... and presto save the jpg in my campaign folder and I could pull it up during a session. Now I have a new computer with vista and failed at installing my older Acrobat, and the new version seems to lack the feature. I also downloaded the Foxit Reader, but both will only allow me to save the image to the clipboard.

So am I missing something? How can I select and save images from pdf files for use in FG2? The pdf maps are much better than my hand drawn disasters, and it's frustrating cause it used to be so easy, help :cry:

unerwünscht
November 26th, 2009, 02:45
I have not played around much with ripping maps from PDF. However if you can copy it to your clipboard, you should be able to open photo editing software and paste it to a new blank image.

Also, If I am not mistaken on my copyright law, maps and floor plans can not be copy protected. The image itself is copy protected, but you could use a program like Dundjinni to recreate the map freely.

Obviously any text that goes with the map is copyright. But I dont think that fall into the bounds of the question at hand.

CampbellR66
November 27th, 2009, 13:58
In Acrobat reader you need to activate the selector tool then you can copy paste.

I paste them into Paint.NET and rescale and remove keys to create battle maps and save a seperate copy as the GM copy.

ddavison
November 27th, 2009, 19:44
The best way I have found to pull all images in the best format possible is to use xPDF's pdfimages.exe command line tool and tell it to spit out JPG files for each image stored in the PDF. Drop the results into a folder and then it will do the entire PDF at once. You just need to locate the one you want and then rename it as appropriate or resize it as needed.

Download xPDF here: https://www.foolabs.com/xpdf/download.html

philth
November 28th, 2009, 02:25
In Acrobat reader you need to activate the selector tool then you can copy paste.

I paste them into Paint.NET and rescale and remove keys to create battle maps and save a seperate copy as the GM copy.

I went this route...seems to work fine. bummer that you need to have a new program to do something older versions of adobe did on its own. but oh well, thanks for the help

Zeus
November 28th, 2009, 13:23
I went this route...seems to work fine. bummer that you need to have a new program to do something older versions of adobe did on its own. but oh well, thanks for the help

I think I if recall correctly there is also an option in preferences that enables graphics to be selected before text using the regular selection tool. You could try that.

Be warned if you use the snapshot tool (icon of a camera), the graphics original dimensions will be ignored in favour of the current view zoom setting.

Doswelk
November 29th, 2009, 21:05
When I was porting across pdfs to FGII on some PDFs I could just select the picture and paste it into Gimp, on others I had to use a screen grabber tool.

I think it all depends on the security set upon the PDF to begin with...

tdewitt274
November 29th, 2009, 21:29
The best way I have found to pull all images in the best format possible is to use xPDF's pdfimages.exe command line tool and tell it to spit out JPG files for each image stored in the PDF. Drop the results into a folder and then it will do the entire PDF at once. You just need to locate the one you want and then rename it as appropriate or resize it as needed.

Download xPDF here: https://www.foolabs.com/xpdf/download.html

Thanks! That's pretty slick!

Unfortunately, there's a lot of files created and it's hard to navigate. I modified a BAT file from another user on the boards to convert the files to PNG format. Then, you can turn on the "Thumbnail" option in Windows Explorer to find the one you need and delete the ones you don't.

Requires ImageMagick (see this thread (https://www.fantasygrounds.com/forums/showthread.php?t=10812)) and the above mentioned XPdf


PATH=%PATH%;c:\program files\ImageMagick-6.5.7-1
for %%f in (*.ppm) do mogrify -format png "%%f" "%%f"

Zeus
November 30th, 2009, 09:16
When I was porting across pdfs to FGII on some PDFs I could just select the picture and paste it into Gimp, on others I had to use a screen grabber tool.

I think it all depends on the security set upon the PDF to begin with...

Although security may be playing a part I believe it's also down to how the original authoring software produced the PDF and the layering of the objects within the PDF document itself.