More than 9 columns in dynamic tables
Hello,
I work in mapfish-print 3.19.0 and I have a problem with dynamic tables. I have a report with too many columns to fit on a A4 landscape oriented page. Only 9 columns are in the report, the other part of the columns is truncated and not in the report. I tried to make A3 format, but then these 9 columns are stretched only.
I need the report spanned in two or more pages. How can I make a break to have all columns in my report? Or how can I downsize the column width?
How to reproduce
For example, the print app "datasource_dynamic_tables" on github. Only 9 columns are in the report. Where are the other columns?
requestData-landscape.json
{
"layout": "A4 landscape",
"attributes": {
"datasource": [
{
"title": "Table 1",
"table": {
"data": [
[
"337907707",
"2010-11-09T22:54:26Z",
"Alpes",
"bus_stop",
"337907707",
"2010-11-09T22:54:26Z",
"Alpes",
"bus_stop",
"337907707",
"2010-11-09T22:54:26Z",
"Alpes",
"bus_stop"
]
],
"columns": [
"osm_id",
"timestamp",
"name",
"type",
"test1",
"test2",
"test3",
"test4",
"test5",
"test6",
"test7",
"test8"
]
}
}
],
"title": "Report title",
"map": {
"center": [
0,
0
],
"layers": [],
"scale": 25000,
"projection": "EPSG:4326",
"dpi": 90
}
}
}
Best regards.
I think 9 is the default value. You can overwrite it by setting the maxColumns parameter: http://mapfish.github.io/mapfish-print-doc/processors.html#!prepareTable