Skip to content Skip to navigation

OpenStax_CNX

You are here: Home » Content » Apache FOP (Formatting Objects Processor)

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

In these lenses

  • xsl-fo display tagshide tags

    This module is included inLens: XSL Formatting Objects
    By: Hannes Hirzel

    Comments:

    "Running examples with the Apache fop processor"

    Click the "xsl-fo" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Apache FOP (Formatting Objects Processor)

Module by: Hannes Hirzel. E-mail the author

Summary: The Apache Formatting Objects Processor (FOP) comes with a considerable number of example XSL-FO documents. They are useful to learn the XSL-FO language. It is shown how to set up FOP and to run an example.

Introduction

In the module XSL Formatting Objects an introduction into XSL-FO is given. In this module we are going to run example programs using the Apache Formatting Objects Processor (FOP). This program is mostly used to produce PDF files.

Installation

Linux / Debian

In Ubuntu for example, install fop using a terminal window and execute


sudo apt-get install fop

MSWindows

Make sure you have a Java Runtime Environment (JRE) installed.

Download FOP from xmlgraphics.apache.org/fop/download. Go for a binary download, e.g. fop-1.0-bin.zip. Unzip the file.

For the following it is assumed that the unizipped files are in a folder like C:\Documents and Settings\hirzel\My Documents\fop-1.0.

Running the examples

Open a command window or terminal and change the directory to fop-1.0.

Execute the following command fop examples\fo\basic\readme.fo result.pdf.

C:\Documents and Settings\hirzel\My Documents\fop-1.0>fop examples\fo\basic\readme.fo result.pdf

This means that the Apache fop processor is called with readme.fo in the subdirectory examples\fo\basic as input file. The result is put into the file result.pdf.

You may explore the examples folder for more and run them accordingly.

Reference

An Apache fop complicance reference chart for each fo element including a link to the standard.

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks