pyramid_oereb_mfp
is an implementation of a static extract (PDF) for
the pyramid_oereb server
using MapFish-Print.
Starting version 1.8.0,
you require MapFish-Print in version 3.25 or later, which uses the pdfA
feature (required for PDF/A compliance).
Starting version 1.5.0,
you require MapFish-Print in version 3.23.1 or later, which introduces the allowTransparency
feature (required for PDF/A compliance).
We recommend you run the dockerized MapFish-Print. If this is not possible for you, you need to ensure the following:
- verify that Java is installed in version 8 or later on your system (required by this MapFish-Print version)
- add the Cadastra font package to your print app, by going to the folder
WEB-INF/lib
in the MapFish-Print app and copying the Cadastra.jar file to it. You can find a copy of this package in the MapFish-Print repository. Make sure you download it cleanly: to check that, do for example ajar tf Cadastra.jar
on it. If this does not work, it will not work within MapFish-Print either. - if you are using MapFish-Print in version 3.24 or later, you must add an environment variable PRINT_YAML_MAX_ALIASES to avoid a SnakeYAML error with the newest library of SnakeYAML. The value must be higher than the number of aliases used in the pyramid_oereb_mfp configuration file; you can set it for example to 200 to be on the safe side.
To run a local instance of mapfish-print (in docker) with the oereb templates, do:
make serve
make sure docker is installed. In addition, if you have not done
this before, you need to declare the print-network
for docker,
so that your local pyramid_oereb
docker container can access
your local print
container, as follows:
sudo docker network create print-network
This subproject was created consequently of Issue 459. Access the history of the templates by using this openoereb/pyramid_oereb commit, which deleted the templates there as a starting point.