First you need to follow the workshop of MapFish to setup the MapFish print module environment
following the official documentation
List all print modules: http://localhost/example/
Create print report job and download the output http://localhost/example/?report