From: David Rosenstrauch <[EMAIL PROTECTED]>
Reply-To: "JDJList" <[EMAIL PROTECTED]>
To: "JDJList" <[EMAIL PROTECTED]>
Subject: [jdjlist] Re: Word to PDF
Date: Thu, 6 Feb 2003 12:01:21 -0500

If RTF (Microsoft Rich Text Format) is an option for you instead of MS Word,
then you can do:

* RTF -> RTF parser -> XML -> XSL:FO -> FOP -> PDF
* You can use the JavaCC parser generator and an RTF grammer
(http://www.cobase.cs.ucla.edu/pub/javacc/#Rsection) to create an RTF parser.
* Customize your parser to output as XML
With an RTF grammar, parsing is easy with JavaCC as long as one knows JavaCC. But you don't expect everyone to understand RTF and produce meaningful XML document, do you? Are you talking about a one-time task or a product idea?


* Use the Apache FOP project (http://xml.apache.org/fop/) to convert from
XML/XSL:FO to PDF

If you must use MS Word format, then you can take a look at the POI project
(http://jakarta.apache.org/poi/).


Someone asked this not too long ago (or was that on another list?). Check the
archives for more info.


DR

On Thursday 06 February 2003 10:59 am, you wrote:
> Hi all,
>
> I have to develop an application that has to convert a MS Word File to PDF
> format.
> I have checked the web, but have not found any clue (without having to buy
> a comercial tool).
> Anny recommendations? Is there any free library? If not, what would be the
> process?
> Does anybody have any experience with this kind of development?
>
> Thanks to you all, regards,
>
> Juan


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________


Reply via email to