LinuxQuestions.org
Help answer threads with 0 replies.
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 01-20-2012, 06:31 PM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Rep: Reputation: 32
How can convert MSOffice .xml files to .pdf?


Hallo:

I've lots of files generated with MSOffice in .xml format.

I want to convert them to .pdf.

What I do:
file.xml -->import in MSOffice and export to-->file.doc -->run doc2pdf file.doc --> I get file.pdf

The problem is that I have to use MSOffice to convert the file to .doc and I try to do if with scripts in Linux.

Is there any way to convert MSOffice .xml files directly in Linux?

Thanks
 
Old 01-20-2012, 07:11 PM   #2
Ion Silverbolt
Member
 
Registered: Sep 2004
Distribution: Gentoo/Xfce, Manjaro/Xfce, SolydXK
Posts: 194

Rep: Reputation: 36
I think xml2doc does it, but I have never used it so I can't verify its quality.

From the xml2doc page:
Quote:
xml2doc is an xml files processor tool, that allows you to write documents in a simple XML way and then output them in various formats (pdf,html,txt,manpage,...). In first term is intended to be a lightweight version of DocBook, but smaller (20KB against 100MB), faster, easy to learn, and very flexible.
The program should be in your package manager as xml2doc.

http://xml2doc.sourceforge.net/
 
Old 01-20-2012, 08:55 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Might also be able to use openoffice just as you would msoffice.
 
Old 01-20-2012, 10:54 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
getting MS office to run in wine ??????
might be better off using Libreoffice
 
Old 01-21-2012, 08:00 AM   #5
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Original Poster
Rep: Reputation: 32
Thanks for the reply.

About the suggestions:

- xml2doc: When I try to use it, it says:
Isn't a xmldoc document (is <wordDocument>)

- I use OpenOffice/LibreOffice- I need to convert the file from command line. And the .xml document doen't include the DTD and style, so even OpenOffice doesn't open it in right way (Is imported as .txt so images are not displayed and style lost).

- Using MSOffice with wine. I supponse will not solve my problem as need to convert from command line.

So I think what I need a .xml wordDocument converter.

Does any know if there is any for Linux?

Thanks
 
Old 01-22-2012, 08:04 AM   #6
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
http://news.oreilly.com/2008/08/impo...ts-into-w.html

?
 
Old 01-23-2012, 03:09 AM   #7
Felipe
Member
 
Registered: Oct 2006
Posts: 302

Original Poster
Rep: Reputation: 32
Thanks for the reply. Interesting, but go on with the problem.

I've thousands of files to convert and need a command line converter. Supponse can be done programming a xml converter, but would like to know if someone has already solved the problem.

I've seen some online converters, but don't work fine (they don't import the images).

I need to convert the .xml (with images included in the same file) to .pdf.

Regards.
 
  


Reply

Tags
convert, xml



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
convert multiple jpg files into pdf Brocolli Linux - Software 5 05-08-2013 09:43 AM
Convert info files to PDF MTK358 Linux - General 4 11-30-2011 09:18 AM
PDF Convert/ Split to files alaios Linux - Software 3 06-14-2010 06:05 AM
LXer: How to convert PDF files to HTML or XML files in openSUSE LXer Syndicated Linux News 0 08-20-2008 08:40 AM
How to make firefox working with DOM/CSS/MSOffice plugin/XML ? Bruce Ma Linux - Desktop 3 12-27-2006 02:05 AM

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

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