LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2011, 12:09 PM   #1
TOC56
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: Disabled
Smile Create pdf from text files


Can anyone point me to a well working peace of software (free will be preferred) that can convert text-files into pdf.
 
Old 05-18-2011, 12:15 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Libre Office does that quite nicely.

And welcome to LQ!
 
1 members found this post helpful.
Old 05-18-2011, 12:17 PM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,686
Blog Entries: 23

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Hi, LibreOffice does that, and it's free...open your text, set it up right-n-nicely, hit "file" and "export as pdf"...

Works like a charm
 
Old 05-18-2011, 01:35 PM   #4
odin_ago
Member
 
Registered: Mar 2011
Posts: 59

Rep: Reputation: 1
Maybe, OpenOffice.org

//reply from anoher newbie
 
Old 05-19-2011, 02:18 AM   #5
TOC56
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile Start from a script

Quote:
Originally Posted by Hangdog42 View Post
Libre Office does that quite nicely.

And welcome to LQ!
I also need this to be done in background, initiated by a script.
Actually the linux runnings this does not have a gui at all.
 
Old 05-19-2011, 08:02 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Quote:
Originally Posted by TOC56 View Post
I also need this to be done in background, initiated by a script.
Actually the linux runnings this does not have a gui at all.

I was wondering if that was the case. Obviously, txt2pdf is the easiest way, but that isn't free, so I'm guessing you ruled that out. Other than that, I'm not aware of anything to do it in a single step, but you can do it as a two-step process. You could use enscript to convert the files to postscript files and then use ps2pdf to convert the postscript files to pdf.

There also might be a way to print to the CUPS pdf printer (Libre Office does have a command line interface). This (although rather old) gives you a rough idea of how you might do this. I'll do some more digging and see if I can find something cleaner.
 
Old 05-20-2011, 03:16 PM   #7
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
http://perl.jonallen.info/projects/a2pdf

http://bulldog.tzo.org/ascii2pdf/ascii2pdf.html
 
1 members found this post helpful.
  


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
Search text inside PDF files yogomix Linux - Desktop 7 09-15-2014 06:12 AM
Searching multiple pdf files for text mikemrh9 Linux - General 6 06-24-2009 07:47 AM
Create PDF files Chuck23 Linux - Software 6 08-10-2004 10:34 PM
create pdf files from browser sk381 Linux - Software 2 01-25-2004 05:35 AM
How do I create PDF files? thom Linux - General 3 02-27-2002 01:17 PM


All times are GMT -5. The time now is 06:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration