Skip to content
Java library for rendering PDF documents to the screen using Java2D
Find file
Pull request Compare This branch is 33 commits ahead, 134 commits behind katjas:master.
Failed to load latest commit information.
src/com/sun/pdfview Better handling of colorspaces. Add a tolerance value to avoid Apr 18, 2012
stdclasses Use the improved JBIG2 library from Oct 9, 2011
test Fix 'roll' implementation. Add some simple JUnit test for the postscript Apr 18, 2012
.classpath Fix 'roll' implementation. Add some simple JUnit test for the postscript Apr 18, 2012
.project Innitial upload Aug 11, 2011
LICENSE.txt Add license and readme files Aug 11, 2011 Fixes problems with shading. Apr 15, 2012
build.xml Simple ant build file to create the library (without jbig2.jar) Oct 10, 2011

Pdf-renderer improvement branch

This is a fork of pdf-renderer (covered by the LGPL-2.1 license) for improvement purposes.

The principal objective of the fork is to improve the original PDF renderer. The original version is able to handle most of the PDF 1.4 features, but has several bugs and missing functionality.

It uses an improved version of JPedal's JBig2 decoder API.

To do:

  • some colours are displayed incorrect, there seem to be open issues regarding colour space handling
  • some fonts can't be rendered and are replaced with built in fonts
  • embedded Type0 font with a CIDType0 font is not supported correctly. Currently there is a hack in the code to fall back to the built in fonts in this case.


  • support function type 3 rendering (stitching functions)
  • support function type 4 rendering (subset of the PostScript language, specification taken from
  • support for shading patterns and radial shading (type 3)
  • support link annotations for being able to render links
  • handle alternate colour spaces (colour space plus a function to be applied on the colour values)
  • fixes transparency issues / transparent masked images (even though transparency is still not completely supported)
  • corrected handling of overlapping shapes
  • better support Type0 fonts that use embedded CID fonts
  • jbig2 image format decoded with (improved) "jpedal" API
  • DeviceCMY / DeviceRGB colour spaces are working now, but some PDFs are still displayed in wrong format.
  • Improved reading of CMYK images. Some colours are still displayed wrong. (using the API)
  • Improved run length decoding (corrected reading of buffer)
  • fixed compression issues
  • fixed size of outline fonts
  • fixed several exceptions
  • Fixes various font encoding problems (Flex in Type 1, wrong stemhints in Type 1C and inverted presentation of Type 3)
Something went wrong with that request. Please try again.