Looking for a component for previewing formatted text

From: Thomas Baruchel (archaiesteron_at_laposte.net)
Date: 03/25/05

  • Next message: SPG: "Use a scaled font within Styled JTextPane"
    Date: Fri, 25 Mar 2005 07:43:49 +0100
    
    

    Hi, I am writing a program which should include a "previewing system"
    before the printing job. What I have to preview in only formatted text,
    and the text editors included in the JVM would be fine if only the text
    could be justified ; I only need :
       - justification
       - bold/italic
    Really nothing else, and not even any editing feature (the user wants
    only to see the document, not to change it). For the moment, I have to
    very heavy solutions :
       - include FOP in the whole stuff (I want to give a single big JAR to
         the user, because it will be installed and reinstalled on several
         machines by people having no idea of classpath), and transform my
         XML document into XSL-FO before previewing it with a previewer
         hacked from the "official" previewer of FOP (current solution)
       - include ToastScript in the whole stuff, and convert my XML document
         into PostScript (which I can do, by using some special PostScript
         headers, like QuikScript (with no 'c' ;-) or tinydict.
    What is sad is my document is a very simple XML one, that I could
    convert easely to HTML or XHTML. Unfortunately the CSS2 support of Sun
    hasn't the feature I want (justification). Do you know a little, simple,
    free, HTML previewer having this feature, that I could ecapsulate in my
    own program ?

    Regards,

    -- 
    Thomas Baruchel
    Pour m'écrire : http://cerbermail.com/?OEyHGNQFEa
    

  • Next message: SPG: "Use a scaled font within Styled JTextPane"