InfoQ

News

Sun Releases Open-Source PDF Renderer

Posted by Geoffrey Wiseman on Dec 14, 2007 11:48 AM

Community
Java
Topics
Open Source
Tags
PDF
Sun has released a new open-source project as part of SwingLabs: PDF Renderer, "a 100% Java PDF Renderer and Viewer."  PDF Renderer can parse the Portable Document Format (PDF) from a file and display it, as an AWT image, in a panel, or using any Graphics2D implementation.  It has been released under the LGPL license, the same license used by the rest of SwingLabs.  The project page identifies some potential uses:
  • Viewing PDFs in your own application.
  • Offering a print-preview for PDF files.
  • Render PDFs to PNGs for display in a server-side web application.
  • Incorporate PDFs in a 3D Scene.
  • Draw on top of PDFs and Annotate them in a networked viewer.
Although this project was open open-sourced in December 2007, it has a longer history:
In 2003, researchers at Sun Labs developed the PDF Renderer as part of an audio collaboration tool, Sun(TM) Labs Meeting Suite, which is used extensively at Sun for distributed meetings. Meeting Suite was designed to allow people to give presentations created with OpenOffice.
At this point, the public project is still in the early stages, so the documentation is rough around the edges, and there is not yet a large community of users.  However, by open-sourcing the project. Joshua Marinacci hopes the project will attract a community including developers who may contribute:
While the original code drop is from Sun, we want to get the community heavily involved. To make sure that happens we have recruited Tom Oke from Elluminate to run the project. He will act as project owner and lead architect. He is rapidly becoming an expert in the code and looks forward to discussing features with other contributors.
[W]e originally targeted OpenOffice exports, so a few things are missing. It implements most of the PDF 1.4 spec but is missing transparency, fill-in forms, and certain font-encodings. We hope that interested developers in the community will help us fill in these missing features.
Comparing the project to other PDF libraries, Josh adds:
JPedal uses the GPL license, making it non-viable for certain applications. We think that the LGPL is a better fit for a library like this. iText is not a viewer/renderer. iText generates PDFs, it doesn't view them. This makes iText and the SwingLabs PDF Renderer great partners. I look forward to seeing how people combine them.

No comments

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.