A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
A component of MapFish for printing templated cartographic maps. This module is the Java serverside module.
Please read the documentation available here:
Camptocamp is providing professional assistance services, open source software maintenance and new feature development for MapFish Print. Please reach us if you have any inquiry, we'd be glad to help. Every income helps float this project.
Building mapfish-print requires make and Docker.
Execute the following command():
> make buildThis 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:
If you only want to build the docs, simply run:
> ./gradlew docs:buildor run build in the docs directory.
To be able to quickly test modifications in the print you should:
docker-compose.override.sample.yaml to docker-compose.override.yaml.docker compose up -d,
The print will be available on port 8080 and on code modification will be built and trigger a restart.With that you will have a running print, when you modify the code the print will be rebuilt and restarted,
and the debugging port will be opened on 5005.
CHANGELOG.mdx.y from master.backport x.y in the right color (GitHub: Issues -> Labels -> New Label).x.y.0.SECURITY.md file, add a policy for the new and old version..github/workflows/rebuild.yaml file by adding the new branch name..github/workflows/audit.yaml file by adding the new branch name.The following command will run the MapFish printer. The arguments must be supplied to the -PprintArgs="..."
parameter.
To list all the command line options then execute (the current directory is ./core):
> ./gradlew print -PprintArgs="-help"> ./gradlew print -PprintArgs="-config ../examples/src/test/resources/examples/simple/config.yaml -spec ../examples/src/test/resources/examples/simple/requestData.json -output ./output.pdf"If you want to run in debug mode you can do the following:
> ./gradlew print --debug-jvm -PprintArgs="-config ../examples/src/test/resources/examples/simple/config.yaml -spec ../examples/src/test/resources/examples/simple/requestData.json -output ./output.pdf"For the examples that use GeoServer you should run it in the composition, then build and start the composition:
make build
cp docker-compose.override.sample.yaml docker-compose.override.yaml
make acceptance-tests-upRun the example:
docker compose exec builder gradle print -PprintArgs="-config /src/examples/src/test/resources/examples/simple/config.yaml -spec /src/examples/src/test/resources/examples/simple/requestData.json -output /src/examples/output.pdf"Create Eclipse project metadata:
> ./gradlew eclipseImport project into Eclipse
org.mapfish.print.cli.Main-config samples/config.yaml -spec samples/spec.json -output \$HOME/print.pdftarget
:
Thanks to YourKit for letting us use their Java profiler!
Releases, including various assets
Please read our guide on contributing if you're interested in getting involved.
No open issues yet, or sync has not completed.