LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-11-2009, 12:21 PM   #1
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Rep: Reputation: 1
Convert ODT to PDF


Hello! How can i convert odt to pdf without using any open office tools?! Googling didn't tell me the answer. Waiting for your advices. Thx in advance.
 
Old 12-11-2009, 12:31 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Google gave me LOTS of answers:
http://www.google.com/search?q=conve...ient=firefox-a

Quote:
without using any open office tools?
Why?

I think there is now a "print to PDF" option in CUPS---Yes--Google found it:
http://www.google.com/search?q=print...ient=firefox-a

You can also presumably install acrobat using WINE/CrossOver
 
Old 12-11-2009, 01:08 PM   #3
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
Well, i have to write a bash script that would convert our docs from open office format to pdf... and some users don't want to have open opffice tools installed on their PC, some users have OO fatal errors on docs converting. So i'd like to write a script using something else. Thank you for advise, i'll try too google more about PDF printing...
 
Old 12-11-2009, 01:12 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,541
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I followed those links and netsearched a bit wider but still didn't find anything that would convert .odt to .pdf without involving OOo at some stage. Would be surprising if there was because OOo is free and easy to install and there are several ways to do the job using OOo, including batch automation.

So back to pixellany's question: why do you want to do this job without using OOo?
 
Old 12-11-2009, 01:28 PM   #5
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
You are right! It's quite difficult to find any method not using OOo. But when i use it for conversion, some users have troubles with my script. For example they have following errors:
Quote:
Starting docs convertion...
file=./qa/FW_Keybundle_ANSI_tr.odt

** (soffice:31329): WARNING **: unable to get gail version number
error - missing word count in dictionary file
Hash Manager Error : 4
file=./qa/FW_Keybundle_test_tr.odt

** (soffice:31356): WARNING **: unable to get gail version number
file=./qa/activation_cln.odt

** (soffice:31383): WARNING **: unable to get gail version number
file=./qa/test_description.odt

** (soffice:31410): WARNING **: unable to get gail version number
file=./qa/FWUpdate_cln.odt

** (soffice:31437): WARNING **: unable to get gail version number
file=./fw_functional_release_notes.odt

** (soffice:31464): WARNING **: unable to get gail version number
file=./not-for-release/FDS-get_scripts.odt

** (soffice:31491): WARNING **: unable to get gail version number
Error + terrible warnings
 
Old 12-11-2009, 02:25 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,541
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by CartmanYO View Post
Well, i have to write a bash script that would convert our docs from open office format to pdf... and some users don't want to have open opffice tools installed on their PC, some users have OO fatal errors on docs converting. So i'd like to write a script using something else. Thank you for advise, i'll try too google more about PDF printing...
Do you have to convert the documents on their PCs?
 
Old 12-11-2009, 02:29 PM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,541
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by CartmanYO View Post
You are right! It's quite difficult to find any method not using OOo. But when i use it for conversion, some users have troubles with my script. For example they have following errors:


Error + terrible warnings
If it's only affecting some users it might be something to do with the OOo installation on their machines rather than the .odt files themselves ... have you tried converting such documents on computers where the conversion has worked OK?

Which conversion tool were you using? (I have no relevant experience but the answer might help someone else who reads it to help you)
 
Old 12-11-2009, 05:08 PM   #8
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
Quote:
Do you have to convert the documents on their PCs?
Yea, everyone should be able to convert docs.
Quote:
If it's only affecting some users it might be something to do with the OOo installation on their machines rather than the .odt files themselves ... have you tried converting such documents on computers where the conversion has worked OK?
So we need to tell everyone who had this problem to repair their open office. OK, we'll do so if there's no other solution.
Quote:
Which conversion tool were you using?
I use "unoconv *.odt" - simple conversion tool, which uses open office
 
Old 12-13-2009, 09:03 AM   #9
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
I've found solution, so perhaps it would be interesting for someone else. There is a way to convert ODT => HTML => PDF using special PHP classes (ODT2XHTML class and HTML_TO_PDF class), which can be easily found on phpclasses.org. No OpenOffice - easy and fast To make this classes work you have to install php5-cgi and php5-xsl packages.

Last edited by CartmanYO; 12-13-2009 at 09:05 AM.
 
Old 12-13-2009, 07:25 PM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,523

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
that is the power of Linux. many many many tools to accomplish the same task. Personally I have never had a crash with "export to PDF" button inside of OOo, but that is just me. I am sure others can say the same with MS Office with Adobe Pro installed on their system with print to PDF.

Nice solution you found.
 
Old 12-13-2009, 08:56 PM   #11
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
An other way would have been to have a machine with OOo on it and executing the convertion of it, remontly using SSH RSA handshake without password.
 
  


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
What program in Windows to convert ODT files? ToothlessRebel General 13 10-06-2009 11:54 PM
Odt File Convert To Odf Format DOUGLASdc6b Linux - Newbie 3 05-06-2008 07:27 AM
convert odt or .doc into html linuxmandrake Linux - Software 6 02-23-2008 03:48 AM
Script to convert csv 2 xls or odt xowl Linux - Software 1 01-16-2007 09:06 PM


All times are GMT -5. The time now is 03:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration