Convert word and HTML files to PDF on command line

Issues with installing under all Linux Distributions

Convert word and HTML files to PDF on command line

Postby mzshen » Tue Mar 23, 2010 1:22 am

Hello,

on an older installation I have, I found a macro file, AnyToPDF.xba,
and it works fine.

now I have Fedora 12. It comes with OO 3.1.1.
AnyToPDF.xba does not seem to work in it.
There is no output PDF file, and I do not know how to get an error message.

So I downloaded OO 3.2 and AnyToPDF.xba does not work either.
If I use OO GUI and export to PDF, I do get a PDF file.
But I need to do the conversion without using a GUI.

Converting Word docs and HTML files into PDF would be great.

Thanks!
MZ
mzshen
 
Posts: 1
Joined: Tue Mar 23, 2010 1:14 am

Re: Convert word and HTML files to PDF on command line

Postby nemopdf » Tue Mar 23, 2010 4:43 am

:)If you want to add many images into only one PDF, you can try Nemo Html to PDF. This program is just for converting all kinds of html into PDF format, and you can create individual PDF files for each image, or form only a PDF file for all of the images. You can also set properties, page layout and other features for output PDF files. Get more information in below link: Source(s): http://www.nemopdf.com/products/all_to_pdf.html
OpenOffice 3.1 on Windows Vista
nemopdf
 
Posts: 2
Joined: Tue Mar 23, 2010 4:38 am

Re: Convert word and HTML files to PDF on command line

Postby iKazmi2040 » Tue May 11, 2010 12:36 pm

Hey everyone,

I need to export a file from rtf to pdf from command line. The rtf file has images which need to be exported to the pdf file. I have tried Ted to export the .rtf file to .ps but it gives an error message when it tries to export the images in the .rtf file.

I have tried exporting the file from the Open Office GUI and that works fine. I am generating rtf files on a webserver and need those files exported to pdf. I just need to export the rtf document with the default settings to pdf. Is there a way where I could use php to export the rtf file to pdf? I have checked the API documentation and the C++ documentation is unavailable (the only available documentation is for Java which does not help a lot).

Any help regarding this or any pointers as to where I can find something useful regarding this would be highly appreciated.

Best Regards,
Ali
OpenOffice 3.1 on Ubuntu 9.10
iKazmi2040
 
Posts: 1
Joined: Tue May 11, 2010 11:35 am

Re: Convert word and HTML files to PDF on command line

Postby Robert Tucker » Tue May 11, 2010 4:17 pm

Abiword:

Code: Select all   Expand viewCollapse view
$ abiword --to=pdf filename.rtf

I tried it but images originally in the centre of the page were left aligned in the .pdf.


I've not tried these but see if they are of any interest:

JODConverter
PyODConverter
LibreOffice 6.x.x on Fedora 32 and Ubuntu 20.04 (Dual Boot)
User avatar
Robert Tucker
Volunteer
 
Posts: 1247
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: Convert word and HTML files to PDF on command line

Postby BadWolf » Sun Jul 18, 2010 11:29 pm

Would it not be better to just open the RTF in OpenOffice and just export it to PDF? Something like this http://www.rtftopdf.com

I just don't see the point of going to command line when it's built in to the interface and it works fine.
www.xpstopdf.com
OpenOffice Version 3, on XP
BadWolf
 
Posts: 4
Joined: Sun Jul 18, 2010 5:28 am

Re: Convert word and HTML files to PDF on command line

Postby JamesJo » Mon Sep 05, 2011 9:15 am

BadWolf wrote:Would it not be better to just open the RTF in OpenOffice and just export it to PDF? Something like this http://www.rtftopdf.com

I just don't see the point of going to command line when it's built in to the interface and it works fine.

indeed, much easier.. i found it in here wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Getting_Started/Exporting_to_PDF
JamesJo
 


Return to Linux

Who is online

Users browsing this forum: No registered users and 3 guests