Skip to content

This is a small project which only shows how to use Velocity, iText 2.0.8 and Flying Saucer to use the same page for making both html and pdf.

Notifications You must be signed in to change notification settings

jelinden/velocitypdfexample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

velocitypdfexample

This is a small project which only shows how to use Velocity, iText 2.0.8 and Flying Saucer to use the same page for making both html and pdf. There is also a small pdfbox test for testing pdf content.

Usage

git clone https://github.com/jelinden/velocitypdfexample.git
cd velocitypdfexample
mvn jetty:run

go to:
http://localhost:8080/velocitypdfexample/index.html
http://localhost:8080/velocitypdfexample/index.pdf

Viewable at heroku

https://velocitypdfexample.herokuapp.com/index.html
https://velocitypdfexample.herokuapp.com/index.pdf

Pdfbox test

PdfContentTest

About

This is a small project which only shows how to use Velocity, iText 2.0.8 and Flying Saucer to use the same page for making both html and pdf.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published