# Extracting text from a pdf file

**URL:** <https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305>\
**Category:** Factual Questions\
**Created:** [November 12, 2008, 4:29am UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305 "2008-11-12T04:29:06Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [November 13, 2008, 9:08pm UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305/21 "2008-11-13T21:08:31Z")

</div>

> [@robcaro](#):
>
> If you have MS Word, you can use PDFtoWord. You can download it from [VeryPDF.com](http://VeryPDF.com). If you cannot get it there, let me know.

Some people in this thread are missing something important which is that IF the PDF is an image then the only way to convert to text is to do OCR.

You relly need to understand the difference between text and graphics.

---

<div class="post-metadata">

**Author:** ![minor7flat5](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/minor7flat5/32/258_2.png) [@minor7flat5](https://boards.straightdope.com/u/minor7flat5)\
**Post date:** [November 13, 2008, 9:42pm UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305/22 "2008-11-13T21:42:53Z")

</div>

> [@Tapioca\_Dextrin](#):
>
> The full version of Acrobat  
> …  
> There’s no OCR in the office  
> …  
> Ah, the joys of confidential documents.  
> …  
> Looks like I’ll have a busy few weeks typing. I’ve nothing better to do :smack:

Now that I’m home and in front of my Mac…

If the “full version of Acrobat” you speak of is the product called “Adobe Acrobat Professional” then do the following:

1. Make a copy of the file to work on
2. Go to **Document** / \*\*OCR Text Recognition \*\*/ **Recognize Text Using OCR…**
3. Check **All Pages** and click **OK** , assuming the settings are good

If the result is still munged, try this:

1. Go to **Document** / **Examine Document…**
2. Check all of the checkboxes you can
3. Click **Remove All Checked Items**
4. Repeat steps 1-3

Hope it works out for you!

---

<div class="post-metadata">

**Author:** ![Omoikane](https://avatars.discourse-cdn.com/v4/letter/o/c4cdca/32.png) [@Omoikane](https://boards.straightdope.com/u/Omoikane)\
**Post date:** [November 13, 2008, 9:44pm UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305/23 "2008-11-13T21:44:05Z")

</div>

If you have Microsoft OneNote, you can “Print to OneNote” as a printing option in Adobe, and it will do the OCR for you. After that, you just need to copy and paste the text into whatever thing you wish.

I did it just earlier today with a PDF that had no search-able text in it.

---

<div class="post-metadata">

**Author:** ![Balthisar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/balthisar/32/2825_2.png) [@Balthisar](https://boards.straightdope.com/u/Balthisar)\
**Post date:** [November 14, 2008, 3:01am UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305/24 "2008-11-14T03:01:40Z")

</div>

If it’s letting you select text, then it’s text, not a bitmap. I’ve had this problem, too, with old PDF’s. The usual solution for me is to take them home and do a copy and paste on my Mac. Problem solved. Of course this only works for l33t people (like myself) that have used Macs since 1986, or have since become converts. So…

When I have problems similar to this (and not just for PDF’s), I set up a text printer, and print to file. Add a new printer, select Generic as the manufacturer, and using common sense, whatever the equivilent to to text or line printer is (there are only a few choices). Now when you print, make sure you elect “print to file” in the printer dialogue, specify a name when asked, and there you go: a perfectly good text file with the .prn extension. Import into Excel, open it in your favorite text editor, whatever. You have pure text.

---

<div class="post-metadata">

**Author:** ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)\
**Post date:** [November 14, 2008, 9:20am UTC](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305/25 "2008-11-14T09:20:26Z")

</div>

> [@Tapioca\_Dextrin](#):
>
> The postscript file doesn’t contain any readable text ☹

Bummer. Okay, [here](http://wiki.services.openoffice.org/wiki/Pdf_Import_Extension) is a page describing Open Office 3.0s pdf reading capability. You can download it from [OpenOffice.org](http://OpenOffice.org) I haven’t tried it yet, and it is a beta, but it might be a solution. I hear the download is pretty big, btw.

I do my ps stuff in Solaris. I’ve never tried to play with it under Windows.

[Previous page](https://boards.straightdope.com/t/extracting-text-from-a-pdf-file/472305.md?page=1)
