Skip to content

Commit 237c6ee

Browse files
committed
Improve defaultPrintLayout documentation
1 parent 1da6f48 commit 237c6ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/configuration/ThemesConfiguration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ The format of the theme definitions is as follows:
148148
| `⁣  {"s": <Scale1>, "x": <Width1>, "y": <Height1>},` | Keep this list sorted in descending order by scale denominator. |
149149
| `⁣  {"s": <Scale2>, "x": <Width2>, "y": <Height2>}` | In this example, `{x: <Width2>, y: <Height2>}` will be used for `<Scale1> > Scale >= <Scale2>`. |
150150
| `],` | |
151-
| `"defaultPrintLayout": "<ID>",` | Optional, name print layout to select by default. |
151+
| `"defaultPrintLayout": "<name>",` | Optional, name of print layout to select by default. |
152152
| `"printLabelForSearchResult": "<ID>",` | Optional, an ID of a print layout label to which the current search result text (if any) will be written to when printing. |
153153
| `"printLabelForAttribution": "<ID>",` | Optional, an ID of a print layout label to which the current attribution text (if any) will be written to when printing. |
154154
| `"printLabelConfig": {` | Optional, configuration of the text input fields for print layout labels. |

src/topics/Printing.md

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ You can enable the option to generate a GeoPDF by setting the Print plugin confi
2020

2121
You can select output format for printing layout. Default values are `application/pdf`, `image/jpeg`, `image/png` and `image/svg`. You can restrict formats to one or more of them by setting the Print plugin config option `formats` to an array of these formats. See [QGIS Server documentation](https://docs.qgis.org/latest/en/docs/server_manual/services/wms.html#wms-getprint-format) for WMS GetPrint supported formats.
2222

23+
Finally, you can configure which print layout is selected by default by setting `defaultPrintLayout` to the name of the desired print layout in the [theme configuration](../configuration/ThemesConfiguration.md#manual-theme-configuration).
24+
2325
Some additional tasks include:
2426

2527
* [Configuring the print background layers](#background-layers)

0 commit comments

Comments
 (0)