Skip to content

Implementation of a static extract (PDF export) for the pyramid_oereb server with MapFish-Print

Notifications You must be signed in to change notification settings

openoereb/pyramid_oereb_mfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyramid_oereb_mfp (ÖREB-Server Print)

pyramid_oereb_mfp is an implementation of a static extract (PDF) for the pyramid_oereb server using MapFish-Print.

Prerequisites

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:

  1. verify that Java is installed in version 8 or later on your system (required by this MapFish-Print version)
  2. 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 a jar tf Cadastra.jar on it. If this does not work, it will not work within MapFish-Print either.
  3. 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.

Running local tests:

To run a local instance of mapfish-print (in docker) with the oereb templates, do:

make serve

Prerequisites for running local tests:

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

Project history

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.

About

Implementation of a static extract (PDF export) for the pyramid_oereb server with MapFish-Print

Resources

Stars

Watchers

Forks

Packages

No packages published