From 4b41ae20887a1c2798f46495ec48ac8d8bf0956f Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Mon, 5 May 2003 23:37:38 +0000 Subject: [PATCH] Move doc about running SVG in a headless environment from faq.xml to graphics.xml. Add a comment in the "Requirements" section of running.xml to reference this doc. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196404 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/faq.xml | 26 +------------- src/documentation/content/xdocs/graphics.xml | 14 +++++++- src/documentation/content/xdocs/running.xml | 37 ++++++++++++-------- 3 files changed, 37 insertions(+), 40 deletions(-) diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index 553281c39..5559dda05 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -595,31 +595,7 @@ Can I control this? How do I use FOP with SVG on headless servers? -

- Batik uses AWT classes for rendering SVG, which in turn needs an X - server on Unixish systems. If you run a server without X, or if you - can't connect to the X server due to security restrictions or - policies, SVG rendering will fail. -

-

- There are still several options: -

-
    -
  • - If you are using JDK 1.4, start it with the -Djava.awt.headless=true - command line option. -
  • -
  • - Install a X server which provides an im-memory framebuffer without - actually using a screen device or any display hardware, like Xvfb. -
  • -
  • - Use a toolkit which emulates AWT without the need of an underlying X - server, like PJA. The PJA toolkit is - free and comes with detailed installation instructions. -
  • -
+

See FOP: Graphics (Batik).

diff --git a/src/documentation/content/xdocs/graphics.xml b/src/documentation/content/xdocs/graphics.xml index 66b1b563c..655f42594 100644 --- a/src/documentation/content/xdocs/graphics.xml +++ b/src/documentation/content/xdocs/graphics.xml @@ -134,7 +134,19 @@ JAI is much faster than JIMI, but is not available for all platforms. See
Batik -

Current FOP distributions include a distribution of the Apache Software Foundation's Batik version 1.5beta4. No installation is required. Because Batik's API changes frequently, it is highly recommended that you use this version with FOP.

+

Current FOP distributions include a distribution of the Apache Software Foundation's Batik version 1.5beta4. +It is automatically installed with FOP. +Because Batik's API changes frequently, it is highly recommended that you use the version that ships with FOP, at least when running FOP.

+ Batik must be run in a graphical environment. +

Batik must be run in a graphical environment. +It uses AWT classes for rendering SVG, which in turn require an X server on Unixish systems. +If you run a server without X, or if you can't connect to the X server due to security restrictions or policies (a so-called "headless" environment), SVG rendering will fail.

+

Here are some workarounds:

+
    +
  • If you are using JDK 1.4, start it with the -Djava.awt.headless=true command line option.
  • +
  • Install an X server which provides an in-memory framebuffer without actually using a screen device or any display hardware. One example is Xvfb.
  • +
  • Install a toolkit which emulates AWT without the need for an underlying X server. One example is the PJA toolkit, which is free and comes with detailed installation instructions.
  • +
diff --git a/src/documentation/content/xdocs/running.xml b/src/documentation/content/xdocs/running.xml index 399ec804d..3105f4271 100644 --- a/src/documentation/content/xdocs/running.xml +++ b/src/documentation/content/xdocs/running.xml @@ -8,22 +8,31 @@ -
- Installation -
- Overview -

The following software must be installed:

-
    -
  • Java 1.2.x or later.
  • -
  • FOP. The FOP distribution includes all libraries that you will need to run a basic FOP installation. These can be found in the xml-fop/lib directory. These libraries include the following:
  • +
    + System Requirements +

    The following software must be installed:

    +
      +
    • Java 1.2.x or later Runtime Environment.
    • +
    • FOP. The FOP distribution includes all libraries that you will need to run a basic FOP installation. These can be found in the xml-fop/lib directory. These libraries include the following:
        -
      • Apache Xerces-J for XML parsing. You can use other XML parsers which support SAX and DOM.
      • -
      • Apache Xalan, an XSLT processor.
      • -
      • Apache Batik, an SVG library.
      • +
      • Apache Xerces-J for XML parsing. You can use other XML parsers which support SAX and DOM.
      • +
      • Apache Xalan-J, an XSLT processor.
      • +
      • Apache Batik, an SVG library.
      -
    • Optional Libraries
    • -
    -
    + +
+

The following sofware is optional, depending on your needs:

+
    +
  • Graphics libraries. Support for some graphics formats requires additional packages. See FOP: Graphics Formats for details.
  • +
  • PDF encryption. See FOP: PDF Encryption for details.
  • +
+

In addition, the following system requirements apply:

+
    +
  • If you will be using FOP to process SVG, you must do so in a graphical environment. See FOP: Graphics (Batik) for details.
  • +
+
+
+ Installation
Instructions

Basic FOP installation consists of first unzipping the .gz file that is the distribution medium, then unarchiving the resulting .tar file in a directory/folder that is convenient on your system. Please consult your operating system documentation or Zip application software documentation for instructions specific to your site.

-- 2.39.5