mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

Set DPI per template

Open jesseeichar opened this issue 11 years ago • 1 comments

Right now the DPI value can be configured per map definition. I don't know if it makes sense to have map graphics with different DPI values on one page. So, I would propose to move the DPI parameter into the template definition.

jesseeichar avatar Oct 10 '14 06:10 jesseeichar

Just had a voice chat with @tsauerwein and he clarified what he means by for this issue.

First thing to recognize is that when you print a report the DPI for the entire print has to be the same for all elements in the print job. Consider printing a report on a printer, the DPI is by definition set by the printer.

In this case it does make sense to place the DPI configuration parameters (maxDPI and dpiSuggestions) on the template in the config.yaml.

Equally it makes sense to send the DPI only once in the request JSON data instead of for each map. So in this case we can have a root level dpi element.

jesseeichar avatar Oct 10 '14 06:10 jesseeichar