Giter VIP home page Giter VIP logo

scala-pdf's Introduction

Scala PDF module

This module helps in generating PDF documents dynamically from your Scala application. It simply renders your HTML- and CSS-based templates to PDF.

It is based on the Flying Saucer library, which in turn uses iText for PDF generation.

Installation

libraryDependencies += "net.kaliber" %% "scala-pdf" % "0.12"

resolvers += "Kaliber Repository" at "https://jars.kaliber.io/artifactory/libs-release-local"

Usage

val body = /* some xhtml string */
val renderer = new PdfRenderer(classLoader)
val bytes = renderer.toBytes(body)

Please see the Test.scala file for an example of loading.

Releases

0.11 2016-04-29 Changed organisation
0.10 29.04.2016 Radical rewrite
0.9 29.01.2016 Set sharedContext on userAgent
0.8 27.04.2015 Removed Play framework dependencies
0.7 19.02.2015 Java => Scala
0.6 07.01.2015 Play 2.3
0.5 11.06.2013 Fix with higher UTF-8 codes, documentBaseURL Thanks Wolfert de Kraker
0.4 08.02.2013 Play 2.1
0.4 04.02.2013 Play 2.1.RC4, remote images
0.3 15.06.2012 CSS handling
0.2 21.05.2012 Font handling
0.1 18.05.2012 Initial release

scala-pdf's People

Contributors

eecolor avatar gertv avatar joergviola avatar raisercostin avatar refond avatar rutaihwa avatar wolfert avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.