https://github.com/sciss/pdflitz
A simple action to export GUI components as PDF files. Mirror of https://codeberg.org/sciss/PDFlitz
https://github.com/sciss/pdflitz
java2d pdf
Last synced: 3 months ago
JSON representation
A simple action to export GUI components as PDF files. Mirror of https://codeberg.org/sciss/PDFlitz
- Host: GitHub
- URL: https://github.com/sciss/pdflitz
- Owner: Sciss
- License: agpl-3.0
- Created: 2013-05-14T21:39:21.000Z (about 12 years ago)
- Default Branch: main
- Last Pushed: 2021-05-15T09:45:58.000Z (about 4 years ago)
- Last Synced: 2025-01-05T07:40:10.198Z (4 months ago)
- Topics: java2d, pdf
- Language: Scala
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PDFlitz
[](https://github.com/Sciss/PDFlitz/actions?query=workflow%3A%22Scala+CI%22)
[](https://maven-badges.herokuapp.com/maven-central/de.sciss/pdflitz_2.13)## 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–2021 by Hanns Holger Rutz. All rights reserved. PDFlitz is released under the [GNU Affero General Public License](https://raw.github.com/Sciss/PDFlitz/main/LICENSE) v3+ and comes with absolutely no warranties. To contact the author, send an e-mail to `contact at sciss.de`.
## requirements / installation
The project builds with sbt against Scala 2.13, 2.12, Dotty. The last version to support Scala 2.11 was 1.4.1.
To use the library in your project:
"de.sciss" %% "pdflitz" % v
The current version `v` is `"1.5.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`