MapFish print is a Java Web application, developed in Java, and its goal is to generate maps in PDF format and in different image formats (PNG for instance). It consists of a print server, a client side (there is a GeoExt and an AngularJS plugin) and finally an exchange protocol between the client and server sides. The configuration information is thus recovered in the client part and the selected printing is triggered on the server side.
Up to version 2.x, the models were either fully configured manually via the configuration file in yaml or by using a background map in PDF format and then the dynamic elements (the map, the date, title, scale and legend for example) were set, always via the configuration file in yaml format.
In addition, version 2.0 also allowed to only print out a map, images and text blocks (dynamic or not as the title, comments, date, address) or a scoreboard. When developing version 2.x, this fit our needs and allowed to create quality PDF.
However, since the needs of our customers evolve, we resumed work to simplify the configuration of the application and to provide other features (graphic creation for example, several different cards on the same page).
This new version therefore provides a new method of configuration, simpler, which replaces the old version. Indeed, we have relied on the motor Jasper Studio to configure the print templates. There is always a configuration file in yaml format, but it is now much simpler and focuses on defining models (Jasper files to be used, the parameters to send to the Jasper engine).
Also, the Jasper Engine Studio provides new opportunities for data representation. There are always text blocks, images, maps and legend, but also other blocks such as graphics!
Finally, it is possible to extend the capabilities of the print engine through plugins. Also note that the old API is still managed for better backward compatibility, but we advise you to migrate to the new.
For more information, all related presentations and documentation are available on the official website: