Converting to PDF files

Discuss setup / installation issues - Add a spell checker, Language pack?

Converting to PDF files

Postby Frankfitz » Wed Apr 20, 2016 3:05 pm

I have more than 300 songs in TXT mode which I wish to convert to PDF. Is there a way in which I can do a 'blanket' conversion, rather than one at a time?

Thanking You

Frank
Open Office 3.1

Windows Vista
Frankfitz
 
Posts: 3
Joined: Wed Apr 20, 2016 2:59 pm

Re: Converting to PDF files

Postby acknak » Wed Apr 20, 2016 4:55 pm

Greetings and welcome to the community forum!

There is a menu: File > Wizards > Document Converter ... but it seems that it only applies to word-processing documents; I don't see any way to get a text-to-pdf conversion there.

You can do it from a command line, once you figure out how to access the OpenOffice program. On my system (Linux) it looks like this:

$ soffice --headless --convert-to pdf somefile.txt

Or, for many files:

$ soffice --headless --convert-to pdf *.txt
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Converting to PDF files

Postby Frankfitz » Thu Apr 21, 2016 12:43 pm

Thanks for taking the time to reply. I am not very computer literate, but I will try to figure it out. Are Word-processing documents not the same as text files?
Frank
Open Office 3.1

Windows Vista
Frankfitz
 
Posts: 3
Joined: Wed Apr 20, 2016 2:59 pm

Re: Converting to PDF files

Postby RoryOF » Thu Apr 21, 2016 12:52 pm

Yes and no! What acknak meant was that the conversion wizards convert to a word processing format, in this case OpenOffice's native format .odt. A word processing document potentially has more formatting information than a plain text file. Forget the wizards - I think these may prove to be a dead end. Try instead his final command line suggestion (you may need to pay attention to file paths). I suggest you should make a directory containing two or three non-critical or test .txt files and try acknak's suggestion.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.4 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31122
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Converting to PDF files

Postby acknak » Thu Apr 21, 2016 5:44 pm

Oops. I never thought that "text files" could be something other than plain text. But it would make more sense if you meant "text documents" created in some word processor.

The command line approach will work for that as well. Sorry I can't be more specific; maybe someone with access to a Windows system can write out the steps.

You may want to ask someone to help. It's not difficult but having a little experience using the command line would go a long way.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Converting to PDF files

Postby Frankfitz » Sat Apr 23, 2016 4:19 pm

Thank you acknak and RoryOf. Much appreciated.
Open Office 3.1

Windows Vista
Frankfitz
 
Posts: 3
Joined: Wed Apr 20, 2016 2:59 pm


Return to Install, Setup and Troubleshooting

Who is online

Users browsing this forum: Zizi64 and 7 guests