LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-18-2010, 08:03 AM   #1
deco81
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
Question to pdf converter


This might be too specific, but I would have great use for some software that would allow me to right click on a file (doc, ppt) and convert it to a pdf. A batch converter might work as well, problem is my files are all nested in folders and I need to maintain this structure.

Any suggestions?

Thanks!
 
Old 08-18-2010, 08:06 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Open open office document.
Click File menu.
Click Export as PDF...
 
Old 08-18-2010, 08:19 AM   #3
deco81
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I have considered this option, I just don't really want to have to do it that way for 300 doc/ppt files, but I guess I could search the folder then open a few at a time and it should try to export the pdf to the original folder... Worth a shot. Thank you for this idea.
 
Old 08-18-2010, 08:45 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Search the internet for openoffice batch, you get a lot of hits that might help you to automate this task.

Here are 2 to give you an idea:
- OOo Writer in cron
- Batch command line file conversion with PyODConverter

Hope this helps.
 
Old 08-18-2010, 09:21 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by deco81 View Post
I just don't really want to have to do it that way for 300 doc/ppt files
The following quote is from the this link:
Quote:
Use OpenOffice Macro on Linux to Convert MS Word Documents to PDF

Create a Glossary Link shell script in /usr/local/bin/:


Read more about How to Convert Word to PDF
Code:
#!/bin/sh DIR=$(pwd) DOC=$DIR/$1 /user/bin/oowriter-invisible "macro://Standard.Module1.ConvertWordToPDF($DOC)"
and below is another useful link w.r.t conversions:
http://www.perpetualpc.net/srtd_commands_rev.html#p

See the commands starting with 'p'.
 
Old 08-18-2010, 04:39 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
doc to pdf :

1) cd <path-to-folder-with-files.doc>/
2) abiword --to=pdf *

.. and all .doc files are converted to <file-name>.pdf
with that one abiword command.
..
 
1 members found this post helpful.
Old 08-18-2010, 07:20 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Install openoffice and the cups pdf driver (package is called cups-pdf in Debian). Then you can "print to file" on the command line.

Eg.

Code:
openoffice.org -invisible -pt pdf foo.doc
This will dump a foo.pdf in whatever directory the cups pdf driver has been configured to (default may be something like ~/pdf).

Cheers,

Evo2.
 
1 members found this post helpful.
  


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
pdf converter program bartgymnast Linux - Software 24 03-24-2015 11:10 PM
PDF to DOC Converter? vivek.sonny.abraham Linux - Software 20 11-30-2011 03:36 PM
CHM to PDF converter noir911 Linux - Software 1 09-09-2006 10:16 AM
About PDF Converter-Convert2PDF satimis Linux - Software 2 06-01-2006 10:16 AM
PDF to PNG converter Kostko Linux - Software 10 05-05-2003 06:23 AM

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

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