Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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?
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:
** (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
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?
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)
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.