我最近通过电子邮件收到了一个PDF 文件(PDF file),其中包含一堆很棒的图像,我想将它们提取为单独的JPEG 文件,以便我可以将它们上传到我的网站。有多种方法可以从PDF中获取图像,而最好的方法实际上取决于您在系统上安装了哪些工具。
在本文中,我将介绍从 PDF 文件中捕获图像(capture an image from a PDF file)的六种最简单的方法。我将从不需要任何付费或第三方软件的最基本方法开始,然后向您展示如何在Adobe Acrobat Pro 和 Adobe Photoshop(Adobe Acrobat Pro and Adobe Photoshop)中完成它,如果您安装了这些方法。
方法 1 – 截图
第一种方法需要截取PDF 文件(PDF file)中的图像。显然,这种方法仅在您需要从PDF 文件(PDF file)中捕获少量图像时才有用。
如果您已经安装了第三方屏幕截图实用程序,您可以使用它,也可以使用(screen capture utility)Windows 7(screen snipping tool in Windows 7) 及更高版本中的内置屏幕截图工具或OS X 中的屏幕截图快捷方式(screen capture shortcuts in OS X)。在这两种操作系统上,您都可以使用操作系统的内置功能仅捕获屏幕的一部分。
方法 2 – 免费在线工具
下一个最简单的方法(easiest method)是简单地使用免费的在线服务(online service),该服务将为您提取图像并让您单独下载它们或作为压缩档案下载。在线服务(online service)的唯一问题是它们会对PDF 文件(PDF file)的大小和免费提取的图像数量有某种限制。
PDFaid.com是一个看起来很糟糕的网站,它的每个可用空间都塞满了广告,但它在从(PDFaid.com)PDF文件中提取高质量图像方面做得很好。
选择最大为 20 MB 的文件,选择您喜欢的图像格式( (image format)JPG、GIF、PNG、BMP),然后单击“提取图像”(Extract Images)按钮。几秒钟后,您会看到一个弹出对话框(popup dialog),您可以在其中单击以下载所有图像的ZIP 文件(ZIP file)。
ExtractPDF.com是另一个很好的网站,它具有更简洁的外观和更好的结果呈现方式。选择PDF 文件(PDF file)(只能为 14 MB)后,您将看到找到的所有图像的列表以及一个小缩略图。
我喜欢这个,因为您可以选择要下载的图像,以防您不想下载所有图像。该站点仅允许您将图像下载为PNG文件,因此您必须自己将它们转换为另一种图像格式(image format)。
方法 3 – Adobe Acrobat Reader
我使用的另一种效果很好的方法是使用免费的Adobe Acrobat Reader 程序(Adobe Acrobat Reader program)。首先(First),继续打开您的PDF 文件(PDF file)并向下滚动到您要捕获的图像所在的位置。
接下来,单击Edit菜单并选择Take a Snapshot。
此时,您只需在图像区域上单击并拖动鼠标即可截取屏幕截图,但更好的方法是再次单击编辑(Edit)菜单并选择全选(Select All)。
现在右键单击PDF 文件(PDF file)中的图像,您将看到一个名为Copy Selected Graphic的选项。
图像将被复制到剪贴板,您可以将其粘贴到任何图像编辑程序中,以您喜欢的格式保存。我更喜欢执行选择和复制过程(select and copy procedure),因为它只抓取图像而没有任何额外的屏幕部分。
值得注意的是,前三种方法要求您单独提取图像,而不是批量或一次全部提取。接下来的三种方法允许您批量提取图像。
方法 4 – Adobe Acrobat Pro
对于那些安装了Adobe Acrobat Pro的人来说,一次从(Adobe Acrobat Pro)PDF中获取所有图像要容易得多。为此,请打开Adobe Acrobat Pro DC并打开所需的PDF 文件(PDF file)。接下来(Next),单击 工具 (Tools ),您会看到一堆图标,但您要单击的是导出 PDF(Export PDF)。
在左侧,您将看到PDF 文档(PDF document)第一页的小缩略图(thumbnail image),在右侧,您将看到一系列用于导出文件的选项。单击(Click)图像(Image),单击所需的文件格式(file format),然后选中导出所有图像(Export all images)框。
单击“导出(Export)”按钮,您将看到另一个对话框,您必须在其中选择导出图像文件的位置。已选择默认文件夹(default folder),但您可以通过单击“选择不同的文件夹”(Choose a Different Folder)按钮来更改位置。
当您单击文件夹时,将弹出一个另存为对话框,您必须为图像命名。(Save As)每个图像的文件名将使用您输入的任何内容作为基本名称(base name),后跟页码和图像编号(page number and image number),即CatPics_Page_1_Image0001.jpg。
方法 5 – Adobe Photoshop
如果您安装了 Photoshop 而不是Acrobat Pro,那么提取所有图像也很容易。打开 Photoshop(Open Photoshop)并像通常打开图像文件一样打开(image file)PDF(PDF file)文件。PDF 导入(PDF import)对话框将自动出现。
单击(Click)图像单选(Images radio)按钮,然后选择要在Photoshop中打开的图像。使用SHIFT 键(SHIFT key)可选择多个图像。单击“确定”后,每个图像将在Photoshop的单独选项卡中打开。
方法 6 – 免费软件程序
如果您想知道为什么我没有提到任何免费软件程序,那是因为它们中的大多数都有在安装过程中出现的某种广告软件或间谍软件。(adware or spyware)但是,由于除了在线方法之外,确实没有其他免费软件方法(freeware method)可以从PDF中批量提取图像,因此我将提到我使用过的一个可以工作的程序。
一些 PDF 图像提取(Some PDF Images Extract)是免费软件,但它有点旧。我通过VirusTotal运行了(VirusTotal)EXE 文件(EXE file),结果完全干净,这是一件好事。唯一的问题是它有时会崩溃,而且似乎没有任何办法解决这个问题。您的里程会有所不同。
单击(Click)文件(File),打开并(Open)选择您的PDF 文档(PDF document)。您实际上可以为一些真正的批量图像(batch image)提取选择多个文件。单击(Click)底部的小播放按钮(play button),它将开始该过程。默认情况下,它会在桌面上创建一个与包含所有图像的PDF同名的文件夹。
因此,您可以通过六种不同的方式从PDF 文件(PDF file)中获取图像,希望其中一种对您有用。如果没有,请发表评论,我会尽力提供帮助。享受!
6 Ways to Extract Images from PDF Files to TIFF, JPEG, PNG
I recеntly got a PDF filе via email that had a bunch оf great imаges that I wanted to extract as separate JPEG fіles so that I could upload them to my website. There are multiple ways to grab аn image out of a PDF and the best way really depends on what tools you hаve installed on your system.
In this article, I’m going to go through the six easiest ways I could figure out to capture an image from a PDF file. I’m going to start with the most basic methods that don’t require any paid or third-party software and then show you how it can be done in Adobe Acrobat Pro and Adobe Photoshop, if you have those installed.
Method 1 – Take a Screenshot
The first method entails taking a screenshot of the image in the PDF file. Obviously, this method is only useful if you need to capture a small number of images from a PDF file.
You can either use a third-party screen capture utility if you already have one installed or you can use the built-in screen snipping tool in Windows 7 and higher or screen capture shortcuts in OS X. On both operating systems, you can capture just a portion of your screen using the built-in features of the OS.
Method 2 – Free Online Tools
The next easiest method is to simply use a free online service that will extract the images for you and let you download them individually or as a compressed archive. The only issues with online services are that they will have some sort of restriction on the size of the PDF file and on the number of images the service will extract for free.
PDFaid.com is a terrible looking site that has ads stuffed into every free space on the site, but it does a good job of extracting high quality images from PDF files.
Choose your file, which can be up to 20 MB in size, select the image format you prefer (JPG, GIF, PNG, BMP) and then click the Extract Images button. After a few seconds, you’ll see a popup dialog where you can click to download a ZIP file of all the images.
ExtractPDF.com is another good site that has a cleaner look and better way of presenting the results. After you select your PDF file, which can only be 14 MB, you’ll see a list of all the images found along with a small thumbnail.
I like this because you can choose which images to download in case you don’t want to download all of them. This site only lets you download the images as PNG files, so you’ll have to convert them to another image format yourself.
Method 3 – Adobe Acrobat Reader
Another method that I have used that works well is using the free Adobe Acrobat Reader program. First, go ahead and open your PDF file and scroll down to where the image you want to capture is located.
Next, click the Edit menu and select Take a Snapshot.
At this point, you could simply click and drag your mouse over the area of the image to capture a screenshot, but a better way is to click on the Edit menu again and choose Select All.
Now right-click on the image in the PDF file and you’ll see an option called Copy Selected Graphic.
The image will be copied to the clipboard and you can paste it into any image editing program to save it out in your preferred format. I prefer to do the select and copy procedure because it grabs just the image without any extra parts of the screen.
It’s worth noting that the first three methods require you to extract images individually rather than in a batch or all at once. The next three methods allow you to batch extract images.
Method 4 – Adobe Acrobat Pro
For those of you who have Adobe Acrobat Pro installed, it’s a lot easier to get all images out of a PDF at once. To do this, open Adobe Acrobat Pro DC and open the desired PDF file. Next, click on Tools and you’ll see a bunch of icons, but the one you want to click on is Export PDF.
On the left, you’ll see a small thumbnail image of the first page of the PDF document and on the right you’ll see a bunch of options for exporting the file. Click on Image, click on the file format you want and then check the Export all images box.
Click on the Export button and you’ll get another dialog where you have to choose the location for the exported image files. A default folder is selected, but you can change the location by clicking on the Choose a Different Folder button.
When you click on the folder, a Save As dialog will pop up and you have to give the image a name. The filename for each image will use whatever you type in as the base name followed by the page number and image number, i.e. CatPics_Page_1_Image0001.jpg.
Method 5 – Adobe Photoshop
If you have Photoshop installed instead of Acrobat Pro, it’s also very easy to extract all the images. Open Photoshop and open the PDF file as you normally open an image file. The PDF import dialog will appear automatically.
Click on the Images radio button and then select the images you want to open inside Photoshop. Use the SHIFT key to select more than one image. When you click OK, each image will be opened in a separate tab in Photoshop.
Method 6 – Freeware Program
If you’re wondering why I haven’t mentioned any freeware programs, it’s because most of them have some kind of adware or spyware that comes along during the install. However, since there really is no other freeware method to batch extract images from a PDF other than the online method, I will mention one program I have used that works.
Some PDF Images Extract is freeware, but it’s a bit old. I ran the EXE file through VirusTotal and it came out completely clean, so that’s a good thing. The only issue is that it sometimes crashes and there doesn’t seem to be any way around that problem. Your mileage will vary.
Click on File, Open and choose your PDF document. You can actually select more than one file for some true batch image extracting. Click the little play button at the bottom and it’ll start the process. By default, it creates a folder on the desktop with the same name as the PDF that contains all the images.
So those are six different ways you can get images out of a PDF file and hopefully one of them works for you. If not, post a comment and I’ll try to help. Enjoy!