sciss / pdflitz

A simple action to export GUI components as PDF files. Mirror of https://git.iem.at/sciss/PDFlitz

GitHub
Contributors Wanted

PDFlitz

Build Status Maven Central

statement

PDFlitz is a small glue code to the iTextPDF library, allowing the export of any Java or Scala Swing component as PDF file. It is (C)opyright 2013–2018 by Hanns Holger Rutz. All rights reserved. PDFlitz is released under the GNU General Public License v3+ and comes with absolutely no warranties. To contact the author, send an email to contact at sciss.de. iTextPDF is covered by the GNU AGPL.

requirements / installation

PDFlitz currently compiles against Scala 2.12, 2.11, using sbt.

To use the library in your project:

"de.sciss" %% "pdflitz" % v

The current version v is "1.3.0"

getting started

A simple demo can be run through sbt test:run.

notes

  • as of v1.2.1, we use onlyShapes = true which means that text is always rendered as glyph vectors. That way we do not have to deal with font mapping. The disadvantage is that text is not editable in the resulting PDF. A future version may provide font mapping and an option to disable onlyShapes