I have two previous posts on using MapFish (in this case, the GeoServer version) to allow for printing to hi-resolution PDF maps from the browser. Here we use a command-line browser (cURL) to post our json to the MapFish service in order to retrieve our PDF.
I did not keep any notes from before on making json posts to the MapFish server as a means by which to test any manual configuration of the json file, so I had to rediscover this approach from pages like this.
The “@” sign below is so that curl knows I’m feeding it a file instead of the actual json to post:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST --data @mapfish_landscape.json http://localhost:8080/geoserver/pdf/create.json