Skip to content

Commit

Permalink
Adding support for printing to work with a shared volume (cloud envir…
Browse files Browse the repository at this point in the history
…onment)

Adding documentation
  • Loading branch information
ritika-t-thakur-alb committed Oct 7, 2024
1 parent 7cbe37d commit e6d0d7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,9 @@ Once ImageMagick is installed (and Ghostscript) then the spring configuration ne
Since the ImageMagick support is a commonly requested configuration there is an IMAGEMAGICK artifact prebuild with the correct configuration. To use this artifact change your maven dependency from: print-servlet-1.2-SNAPSHOT to print-servlet-1.2-SNAPSHOT-IMG-MAGICK (you will likely have to change the 1.2-SNAPSHOT portion to the version of mapfish that you are using).

By default ImageMagick will try to find the convert tool in /usr/bin/convert. You will want to find the path to your convert tool and update imagemagick-spring-application-context-override.xml if that file is included in your build, or mapfish-spring-application-context.xml if you manually changed the mapfish-spring-application-context.xml file to include the imagemagick configuration.


Defining temp work directory for Printing module
----------------------

MAPFISH_PDF_FOLDER : optional environment variable to define the directory path for storing printouts generated by the printing module. When not defined default value is from MapPrinterServlet context
3 changes: 2 additions & 1 deletion docs/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Upgrade
Version 2.3.2
-------------

* Support for printing in a cloud environment and in an environment without sticky sessions : generates a requested printout metadata json file and stores it in the tempDir. With this information peristed, there is no need for sticky sessions and printing module can be used in a cloud environment with shared volume.
Under development.

Version 2.3.1
Expand Down Expand Up @@ -69,4 +70,4 @@ Release notes:
Developers using mapfish-print-v2 as a library are adivsed:

* packages `com.itextpdf.text` change to `com.lowagie.text`
* `com.itextpdf.text.BaseColor` changes to `java.awt.Color`
* `com.itextpdf.text.BaseColor` changes to `java.awt.Color`

0 comments on commit e6d0d7c

Please sign in to comment.