Re: Library for RTF templates and PDF convertion



Dimitri Sverdlov schrieb:

I'm working on a project that requieres sending letters in PDF with a
customized layout from a web application. The layout templates come
from MS Word and therefore are given in RTF format.

Is there a Java library for
1) Getting data from the application in the RTF template, and

Maybe one step to the solution is to build an intermediate document in a standard document format first.

There are some Java-based RTF readers around (including my ScroogeXHTML converter), but I don't know if there is already a RTF -> XSL:FO converter for Java, XSL:FO would make it 'easier' to convert to PDF.

ScroogeXHTML internally uses a DOM-like structure which could be used to analyze and process the RTF content in a more generic way - including some very advanced properties for international languages, like DBCS, Unicode, and right-to-left text direction. However, it does not understand some more difficult layout elements like tables.

Michael Justin
--
betasoft - Software for Delphi™ and for the Java™ platform
http://www.mikejustin.com/
http://www.betabeans.de/
.



Relevant Pages

  • VB6 and MS Word Question
    ... Currently we use WordPad & RTF to create report. ... reads the layout line by line and replaces and code id's (becomes ... Fred Bloggs) with data from the highlighted record. ... I can see how we open a word document, print it etc but is there a way of ...
    (microsoft.public.vb.enterprise)
  • Re: HTML nach RTF umwandeln mit JAVA
    ... > Kann mir jemand einen Tip geben, wo ich evtl. ... eine fertige Java Api ... Ein JEditorPane kann sowohl HTML als auch RTF darstellen. ...
    (de.comp.lang.java)
  • Re: convert file from
    ... Word MVP FAQ site: http://word.mvps.org ... please post all follow-ups to the newsgroup so ... > They ARE saved as Word doc, but still want to open as RTF, and the columns ... >> is something in the file that Word is interpreting as RTF format. ...
    (microsoft.public.word.docmanagement)
  • Reading non-Latin-1 characters frmo an RTF file
    ... I am trying to maintain a Java program I was given. ... The problem is with input characters that are not Latin-1. ... When I looked at the RTF file in GNU Emacs, I saw that the em-dash is ... Unicode characters. ...
    (comp.lang.java.gui)
  • Re: My files dont work after I got new computer
    ... those attached files aren't in RTF format. ... If you want to open them in openoffice itself, ... rename them to have a .sxw extension, though I don't have it installed ...
    (microsoft.public.win32.programmer.gdi)