A component of MapFish for printing templated cartographic maps. This module is the Java serverside module. For support post to the mailing list: https://groups.google.com/forum/#!forum/mapfish-print-users
Java Scheme Other
Latest commit b387b51 Aug 17, 2016 @tsauerwein tsauerwein committed on GitHub Merge pull request #440 from tsauerwein/docs-workshop
Reference workshop in docs
Failed to load latest commit information.
core Correct height and width of the WMS image for high DPI Aug 17, 2016
debian Added project for uploading to maven central. Oct 13, 2014
docs Reference workshop in docs Aug 17, 2016
examples Remove not needed field in example Aug 10, 2016
gradle/wrapper upgrade gradle version to 2.7 Sep 30, 2015
jMeter Improve jMeter tests Mar 25, 2015
publish Create unique snaphots May 30, 2016
travis Prepare the move development -> master Jan 20, 2016
.dockercfg.enc Add the generation of a Docker image. Nov 27, 2015
.gitignore added docs for downloading application, running it and getting the so… Oct 10, 2014
.travis.yml Stop if installing font failed Jun 13, 2016
LICENSE Change license to BSD 2-clause Mar 17, 2016
README.rst Add note about cla in readme May 2, 2016
V2-V3-BREAKING-CHANGES.rst Add a readme file indicating some of the breaking changes between v2 … Aug 28, 2014
build.gradle Set version back to snapshot Jun 13, 2016
checkstyle_checks.xml Fixes thanks to review May 22, 2015
checkstyle_suppressions.xml Do not check tests with Checkstyle Aug 4, 2014
findbugs-exclude.xml add some static analysis to the build Mar 3, 2014
gradle.properties Added jettyRun to gradle build. May 9, 2014
gradlew add some commandline params to reduce garbage Jan 8, 2016
gradlew-debug Fix for https://github.com/camptocamp/mapfish-printV3/issues/79 Aug 3, 2014
gradlew-debug.bat Fix for https://github.com/camptocamp/mapfish-printV3/issues/79 Aug 3, 2014
gradlew.bat add some commandline params to reduce garbage Jan 8, 2016
settings.gradle Added project for uploading to maven central. Oct 13, 2014

README.rst

https://travis-ci.org/mapfish/mapfish-print.svg?branch=master

Please read the documentation available here: http://mapfish.github.io/mapfish-print/

For support or questions post on the mailing list: https://groups.google.com/forum/#!forum/mapfish-print-users

Build

Execute the following command():

> ./gradlew build

This will build three artifacts: print-servlet-xxx.war, print-lib.jar, print-standalone.jar

The build also builds the documentation in the docs/build/site folder. To deploy the documentation it should simply be copied to the gh-pages branch and then committed GitHub will automatically build the updated site at: http://mapfish.github.io/mapfish-print/

If you only want to build the docs simply run

> ./gradlew docs:build

or run build in the docs directory

Deploy

The following command will build and upload all artifacts to the maven central repository.

> ./gradlew uploadArchives -DsshPassphrase=...

You can as well generate a docker image using this command:

> ./gradlew createDocker

If you want to force the version to something custom, you can define the DOCKER_VERSION environment variable.

To use in Eclipse

Create Eclipse project metadata:

> ./gradlew eclipse

Import project into Eclipse

Run from commandline

The following command will run the mapfish printer. The arguments must be supplied to the -PprintArgs="..." parameter.

To list all the commandline options then execute:

> ./gradlew print -PprintArgs="-help"
> ./gradlew print -PprintArgs="-config examples/config.yaml -spec examples/spec.json -output ./output.pdf"

If you want to run in debug mode you can do the following:

Run in Eclipse

  • Create new Java Run Configuration
  • Main class is org.mapfish.print.cli.Main
  • Program arguments: -config samples/config.yaml -spec samples/spec.json -output $HOME/print.pdf

Contributor License Agreement

Before accepting a contribution, we ask that you provide us a Contributor License Agreement. If you are making your contribution as part of work for your employer, please follow the guidelines on submitting a Corporate Contributor License Agreement. If you are making your contribution as an individual, you can submit a digital Individual Contributor License Agreement.