LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-30-2015, 07:56 PM   #1
aldago1
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Rep: Reputation: Disabled
Using pdftotext


I'm trying to convert a pdf file on my desktop to a text file on my desktop using pdftotext in a terminal as follows: pdftotext Test.pdf Test.txt
The result is
I/O error: Couldn't open file 'Test.pdf': No such file or directory.
I also tried: pdftotext /home/desktop/Test.pdf /home/desktop/Test.txt
My impression on reading about pdftotext was that the application opens the pdf file and I don't need to install a pdf reader.
 
Old 10-30-2015, 08:31 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Have you tried the command using the full path statements for the files?

Give that a shot and let us know what happens.
 
Old 10-30-2015, 09:10 PM   #3
aldago1
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I guess I'm too new with this but I thought that /home/desktop/file was the full path. Can you help me out here?
 
Old 10-30-2015, 09:20 PM   #4
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by aldago1 View Post
I guess I'm too new with this but I thought that /home/desktop/file was the full path. Can you help me out here?
Yup that's a absolute (full) path.
But the error isn't that it cannot decode it, it's that the file doesn't exist at the location you specified.
make sure it's 100% correct, using autocomplete (tab) to help. Remember, case is sensitive in linux.
 
Old 10-30-2015, 09:27 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The full path would be /home/username/Desktop/test.pdf and as stated linux is case sensitive.

Last edited by michaelk; 10-30-2015 at 09:41 PM.
 
Old 10-30-2015, 09:32 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try

Code:
/home/[username]/Desktop/[file]    or
~/Desktop/[file]     <----------~/ is shorthand for /home/[username]
 
1 members found this post helpful.
Old 10-30-2015, 09:39 PM   #7
aldago1
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you all. I just switched from Windows 10 to Linux Mint. You solved my problem. Thank you again.
 
Old 10-30-2015, 09:57 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Glad we could help.

Welcome to the wonderful world of Linux and to LQ.

Linux is not hard, but it is different; it can be made to look like Windows on the surface, but, under the hood, it does not work like Linux. Expect it to be different, and you'll do just fine.

About dot com had a pretty good site about Linux; it's designed for new and intermediate users. You might also check out Going Linux.

Last edited by frankbell; 10-30-2015 at 10:04 PM.
 
Old 11-01-2015, 12:02 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you might want to undo the bad windows habit of saving things to the Desktop

a desktop with 500 icons is well............


you have
a Documents folder
a Downloads folder
a Pictures folder
a Music folder
a Videos folder
all by default

the Desktop is more a decorative thing

this dates back many many many years to
" good computer HYGIENE "
this was a win 3 problem
a win95 problem and a very big XP problem
 
  


Reply



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
[SOLVED] pdftotext 0.20.2: pdftotext *.pdf gives syntax error. stf92 Slackware 6 01-22-2015 01:34 PM
pdftotext formatting issue theobald7 Linux - Software 2 09-04-2013 01:26 AM
pdftotext consumes 100%cpu power alaios Linux - Software 1 04-02-2007 06:27 PM
pdftotext - How to output to html with ampersand entities ? narc Linux - Software 2 01-04-2006 02:34 PM
xpdf, pdftotext phoenix7 General 7 09-08-2005 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 01:01 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