LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2007, 11:56 AM   #1
shogun1234
Member
 
Registered: May 2004
Posts: 226

Rep: Reputation: 15
pdf search text question


i use ps2pdf to create a pdf file (the ps file is downloaded from the internet - http://user.it.uu.se/~joachim/intro.ps). the command i use is `ps2pdf in.ps out.pdf'

however, whilst opening the pdf and try to search the text, i found out the matched text (e.g., An) will be highlighted and the area of the highlight is full of the page.

what cause such problem?

thank you very much
 
Old 09-16-2007, 08:24 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
I downloaded the Postscript file and converted it myself. When I looked at the contents in vim, is looks there aren't more than two consecutive letters side by side. This document went from tex -> dvi -> ps -> pdf. I tried searching for more than one word in a "gawk.pdf" document that I produced from source, and was able to.
 
Old 09-17-2007, 06:33 AM   #3
shogun1234
Member
 
Registered: May 2004
Posts: 226

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
I downloaded the Postscript file and converted it myself. When I looked at the contents in vim, is looks there aren't more than two consecutive letters side by side. This document went from tex -> dvi -> ps -> pdf. I tried searching for more than one word in a "gawk.pdf" document that I produced from source, and was able to.
Sorry I do not catch the point. How can I search a word (e.g., process) in that generated pdf without copy words in other lines?
Or what steps you've done enables to select/ search word wanted? I can't do that. If I search the word (e.g., process), the pdf only rely `... the find item was not found.'; however, the word just appear in front of me or it might hightlight words found with whole page if I chose to find other words such as `and'.

Thanks for reply.
 
Old 09-17-2007, 08:07 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683Reputation: 683
The search works for other pdfs but not this one. You can't even cut & paste text. It comes up all garbled. Looking at the document properties, it uses 31 different fonts with custom encoding. Without knowing the encoding, I don't think that a pdf viewer program can equate a word you are entering with the characters in the document.

You could run ps2ascii to obtain some of the text. You won't get the diagrams and the equations won't be accurate.

Last edited by jschiwal; 09-17-2007 at 08:19 AM.
 
Old 09-19-2007, 01:11 PM   #5
shogun1234
Member
 
Registered: May 2004
Posts: 226

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
The search works for other pdfs but not this one. You can't even cut & paste text. It comes up all garbled. Looking at the document properties, it uses 31 different fonts with custom encoding. Without knowing the encoding, I don't think that a pdf viewer program can equate a word you are entering with the characters in the document.

You could run ps2ascii to obtain some of the text. You won't get the diagrams and the equations won't be accurate.

I see. It seems like to use ps2ascii is the best way to obtain the text.

Thanks your help. I appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to Text Conversion limnephilidae Programming 5 01-03-2012 08:22 AM
another question about search and replace text graziano1968 Linux - General 3 08-02-2006 09:35 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM
PDF to Text Conversion limnephilidae Linux - Software 2 06-25-2003 12:36 PM
PDF to text Stephanie Linux - General 1 12-13-2001 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration