The source code for Mapfish Print is available on GitHub: mapfish/mapfish-print.
Please feel free to fork and contribute via pull requests and by creating new issues.
Downloads for the latest version are available as:
- Commandline Application as Tar or Zip (releases or snapshots)
- Web Application (WAR) (releases or snapshots)
- Java Library (JAR) (releases or snapshots)
Command Line Distribution ¶
The Zip file and the Tar file are Mapfish Print distributed as an application that can be ran from the commandline to execute print jobs. It is useful for debugging print configurations and requests.
Assuming you have Java 7+ installed, the
bin/print script will execute a print task. The command line useage can be
printed by executing:
An example of using the application is:
bin/print -config config.yaml -spec requestData.json -output out.pdf
A number of example configurations and requests can be found in the Github repository: MapFish Print example. These examples are also used as continuous integration test.
Web Application (WAR) Distribution ¶
- Install Java 7 or later
- Download a Web Application Server
- Put the Mapfish print WAR file in the webapps directory of the Web Application Server
- Rename the Mapfish Print WAR file to a more convenient name like print.war (the name will be part of the url)
- Start the Web Application Server
- Verify the application is executed correctly by visiting http://localhost:8080/print/index.html. (This assumes that the server is running on localhost port 8080 and you renamed the war to print.war)
Java Library Distribution ¶
The JAR file contains the Mapfish Print code for integrating Mapfish Print into an existing application. It is only the java code with none of the dependent class files, so all dependencies will also need to be downloaded.