Flying Saucer PDF Rendering

Flying Saucer is a CSS 2.1 renderer written in Java. This artifact supports PDF output.

License

License

Categories

Categories

PDF Data
GroupId

GroupId

org.xhtmlrenderer
ArtifactId

ArtifactId

flying-saucer-pdf
Last Version

Last Version

9.1.22
Release Date

Release Date

Type

Type

jar
Description

Description

Flying Saucer PDF Rendering
Flying Saucer is a CSS 2.1 renderer written in Java. This artifact supports PDF output.
Project URL

Project URL

http://code.google.com/p/flying-saucer/flying-saucer-pdf/

Download flying-saucer-pdf

How to add to project

<!-- https://jarcasting.com/artifacts/org.xhtmlrenderer/flying-saucer-pdf/ -->
<dependency>
    <groupId>org.xhtmlrenderer</groupId>
    <artifactId>flying-saucer-pdf</artifactId>
    <version>9.1.22</version>
</dependency>
// https://jarcasting.com/artifacts/org.xhtmlrenderer/flying-saucer-pdf/
implementation 'org.xhtmlrenderer:flying-saucer-pdf:9.1.22'
// https://jarcasting.com/artifacts/org.xhtmlrenderer/flying-saucer-pdf/
implementation ("org.xhtmlrenderer:flying-saucer-pdf:9.1.22")
'org.xhtmlrenderer:flying-saucer-pdf:jar:9.1.22'
<dependency org="org.xhtmlrenderer" name="flying-saucer-pdf" rev="9.1.22">
  <artifact name="flying-saucer-pdf" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.xhtmlrenderer', module='flying-saucer-pdf', version='9.1.22')
)
libraryDependencies += "org.xhtmlrenderer" % "flying-saucer-pdf" % "9.1.22"
[org.xhtmlrenderer/flying-saucer-pdf "9.1.22"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Flying Saucer Download License: LGPL v2.1

OVERVIEW

Flying Saucer is a pure-Java library for rendering arbitrary well-formed XML (or XHTML) using CSS 2.1 for layout and formatting, output to Swing panels, PDF, and images.

Comprehensive documentation available in our user's guide, linked from our website at https://code.google.com/archive/p/flying-saucer/

For information on our development releases, please contact us on our mailing lists.

If you end up using Flying Saucer for your own projects, please drop us an email and tell us about it; it helps inform where we go next, and is interesting and inspiring to other developers.

LICENSE

Flying Saucer is distributed under the LGPL. Flying Saucer itself is licensed under the GNU Lesser General Public License, version 2.1 or later, available at http://www.gnu.org/copyleft/lesser.html. You can use Flying Saucer in any way and for any purpose you want as long as you respect the terms of the license. A copy of the LGPL license is included as LICENSE-LGPL-2.1.txt or LICENSE-LGPL-3.txt in our distributions and in our source tree.

Flying Saucer uses a couple of FOSS packages to get the job done. A list of these, along with the license they each have, is listed in the LICENSE file in our distribution.

GETTING FLYING SAUCER

New releases of Flying Saucer are distributed through Maven. The available artifacts are:

  • org.xhtmlrenderer:flying-saucer-core - Core library and Java2D rendering
  • org.xhtmlrenderer:flying-saucer-pdf - PDF output using iText 2.x
  • org.xhtmlrenderer:flying-saucer-pdf-itext5 - PDF output using iText 5.x
  • org.xhtmlrenderer:flying-saucer-pdf-openpdf - PDF output using OpenPDF
  • org.xhtmlrenderer:flying-saucer-swt - SWT output
  • org.xhtmlrenderer:flying-saucer-log4j - Logging plugin for log4j

iText 2.x has unfixed security bugs. New projects should avoid it.

GETTING STARTED

There is a large amount of sample code under the flying-saucer-examples directory.

flying-saucer-core, flying-saucer-pdf, and flying-saucer-swt must be on the build path, as well as the SWT JAR for your OS.

org.xhtmlrenderer.demo.browser.BrowserStartup will start the browser demo.

Some good entry points (classes) are:

  • org.xhtmlrenderer.simple.XHTMLPanel
  • org.xhtmlrenderer.simple.PDFRenderer
  • org.xhtmlrenderer.simple.ImageRenderer

STATE OF THE PROJECT

Ongoing discussions are carried out in our online discussion group.

Excerpt from the latest merge/release policy:

If you create a PR that can merge without conflicts, I'll merge it. I might ask for additional changes (or feedback from others), but I expect that will be extremely rare.

The basic contract is this: If you're still using Flying Saucer, need something changed, and are willing to do the work yourself, the change will be accepted and released.

Along that line, please also let me know if you need a release done right away. Otherwise I'll bundle up the changes and do a release every four to six months as long as it's required.

This is also the reason why Issues are currently deactivated on GitHub.

HISTORIC LINKS

Versions

Version
9.1.22
9.1.21
9.1.20
9.1.19
9.1.18
9.1.17
9.1.16
9.1.15
9.1.14
9.1.13
9.1.12
9.1.11
9.1.9
9.1.8
9.1.7
9.1.6
9.1.5
9.1.4
9.1.3
9.1.2
9.1.1
9.1.0
9.0.9
9.0.8
9.0.7
9.0.6
9.0.4
9.0.3
9.0.2
9.0.1
9.0.0