techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > General Software

Reply
 
Thread Tools
Old Dec 15, 2010, 07:43 PM   #1
ebolamonkey3
500 Posts
 
ebolamonkey3's Avatar
 
Join Date: Apr 2010
Location: Atlanta/Marietta, GA
Posts: 759 (0.67/day)
Thanks: 209
Thanked 103 Times in 90 Posts

System Specs

Searching in PDF?

Hey guys, I need to look up a large list of data from a PDF file, basically just to check if each entry of the list is in the pdf. Is there some way to do this without having to check one by one?
__________________
ebolamonkey3 is offline  
Reply With Quote
Old Dec 15, 2010, 07:45 PM   #2
erocker
Senior Moderator
 
erocker's Avatar
 
Join Date: Jul 2006
Location: Milwaukee, WI.
Posts: 31,930 (12.77/day)
Thanks: 2,789
Thanked 12,304 Times in 7,823 Posts

System Specs

Ctrl + f
erocker is offline  
Reply With Quote
Old Dec 15, 2010, 07:51 PM   #3
gvblake22
200 Posts
 
gvblake22's Avatar
 
Join Date: Apr 2006
Location: Arizona, USA
Posts: 359 (0.14/day)
Thanks: 20
Thanked 74 Times in 66 Posts
Send a message via AIM to gvblake22

System Specs

Quote:
Originally Posted by erocker View Post
Ctrl + f
That.
Or, if you need to check a bunch of text with some other advanced method, you could use the text selection tool in Adobe Reader, select the text, copy and paste it into some other application (like MS Word or Excel) that will allow you to search the way you want (with custom VBA macro code).
gvblake22 is offline  
Reply With Quote
The Following User Says Thank You to gvblake22 For This Useful Post:
Old Dec 15, 2010, 08:11 PM   #4
streetfighter 2
1000 Posts
 
streetfighter 2's Avatar
 
Join Date: Jul 2010
Location: Philly
Posts: 1,599 (1.55/day)
Thanks: 1,004
Thanked 765 Times in 539 Posts

System Specs

I'd do a slight modification on what gvblake22 said.

First I'd copy the data out of the pdf with the text selection tool. Then I'd create a copy of the data you're looking for (called myData_test.txt) and paste the data from the pdf into it. Using some basic command line tools like this (where myData.txt is the data you're looking for):
Code:
sort myData_test.txt | uniq -d > matchingData.txt
sort myData.txt | diff matchingData.txt -
The output of the second command will only show the data that's missing from the pdf.
streetfighter 2 is offline  
Reply With Quote
The Following User Says Thank You to streetfighter 2 For This Useful Post:
Old Dec 15, 2010, 08:52 PM   #5
gvblake22
200 Posts
 
gvblake22's Avatar
 
Join Date: Apr 2006
Location: Arizona, USA
Posts: 359 (0.14/day)
Thanks: 20
Thanked 74 Times in 66 Posts
Send a message via AIM to gvblake22

System Specs

Quote:
Originally Posted by streetfighter 2 View Post
I'd do a slight modification on what gvblake22 said.

First I'd copy the data out of the pdf with the text selection tool. Then I'd create a copy of the data you're looking for (called myData_test.txt) and paste the data from the pdf into it. Using some basic command line tools like this (where myData.txt is the data you're looking for):
Code:
sort myData_test.txt | uniq -d > matchingData.txt
sort myData.txt | diff matchingData.txt -
The output of the second command will only show the data that's missing from the pdf.
That's a great idea. I'm assuming you just run that code as a batch file or in the Windows > Run > 'cmd'?
gvblake22 is offline  
Reply With Quote
Old Dec 15, 2010, 09:13 PM   #6
streetfighter 2
1000 Posts
 
streetfighter 2's Avatar
 
Join Date: Jul 2010
Location: Philly
Posts: 1,599 (1.55/day)
Thanks: 1,004
Thanked 765 Times in 539 Posts

System Specs

Quote:
Originally Posted by gvblake22 View Post
That's a great idea. I'm assuming you just run that code as a batch file or in the Windows > Run > 'cmd'?
Those are actually GNU command line utilities (common to linux/unix). I run them in Windows using cygwin. They can be run without cygwin using the GNU Utilities for Windows (though I've never tried it). Theoretically you should be able to use the GNU Utilities for Windows just like native DOS commands (in batch scripts or directly in the command prompt).
streetfighter 2 is offline  
Reply With Quote
The Following User Says Thank You to streetfighter 2 For This Useful Post:
Old Dec 15, 2010, 11:24 PM   #7
ebolamonkey3
500 Posts
 
ebolamonkey3's Avatar
 
Join Date: Apr 2010
Location: Atlanta/Marietta, GA
Posts: 759 (0.67/day)
Thanks: 209
Thanked 103 Times in 90 Posts

System Specs

Thanks for the response guys! I actually ended up finding a copy of the file in excel so all's good now
__________________
ebolamonkey3 is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching: 3D Modeling Program YoKid General Software 5 May 10, 2009 07:53 PM
Searching ET clan Laurijan Games 5 Jan 14, 2008 11:34 AM
Searching through P.M.'s panchoman Comments & Feedback 5 Dec 19, 2007 09:39 PM
Keywords to Avoid when Searching POGE News 4 May 14, 2006 05:52 AM
monitor searching for dvi ? x1900xtx ISSA2000 Graphics Cards 0 Feb 22, 2006 01:21 PM


All times are GMT. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts