You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@
5
5
The plugin makes use of python templating libraries for creating reports from data within current QGIS project in the following formats:
6
6
7
7
- ODT
8
-
- Markdown
8
+
- Text (html, xml, markdown, json etc...)
9
+
10
+
A set of sample templates and test data can be found in the [test/templates directory](https://github.com/enricofer/qgis_report_wizard/tree/master/test/templates)
9
11
10
12
## python dependencies
11
13
@@ -174,7 +176,7 @@ For Any template object, globals, layers features and print layouts, a image fil
174
176
175
177
## ODT report generation
176
178
177
-
The odt template has to follow [secretary module](https://github.com/christopher-ramirez/secretary) guidelines. Basically jinja2 template tags have to to embedded in Libreoffice Writer document as visual user defined fields (CTRL + F2), otherwise encoding issue could happen. A set of sample odt templates can be found in tmpl directory within plugin homedir.
179
+
The odt report algorithm generate a odt output starting from a odt template and optionally a vector layer as reporto driver. The odt template has to follow [secretary module](https://github.com/christopher-ramirez/secretary) guidelines. Basically jinja2 template tags have to to embedded in Libreoffice Writer document as visual user defined fields (CTRL + F2), otherwise encoding issue could happen. A set of sample odt templates can be found in tmpl directory within plugin homedir.
178
180
179
181

180
182
@@ -188,7 +190,7 @@ The odt template engine will replace the placeholder image with the new rendered
@@ -199,3 +201,17 @@ the image filter have the following optional parameters:
199
201
| theme | A string indicating a defined map canvas theme of representation |
200
202
| around_border | A floating number representing the amount of a void border around the output image. This parameter is not considered when scale_denominator is specified (default = 0.1) |
201
203
204
+
## Hypertext report generation
205
+
206
+
The Hypertext report Algorithm make use of jinja2 template to generate complex text document output. Any text document can be generated and map images can be included as images files, and in this case the output format will be a zip file that encapsulate the rendered document with the generated images, or encapsulated in text document as [base64 encoded binary data](https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html) that can be visualized in modern web browsers.
207
+
208
+
Odt and Hypertext algorithms basically differ in the image filter that in hypertext report generator has the following optional parameters:
| width | A integer number specifying the width in pixel of the image |
213
+
| height | A integer number specifying the height in pixel of the image |
214
+
| dpi | A integer number specifying the output resolution of the image (default = 200) |
215
+
| center | A point [QgsPointXY](https://qgis.org/pyqgis/master/core/QgsPointXY.html) object or a [x,y] coordinate list that specify the center of the map context of the image. To be used in conjunction with scale_denominator |
216
+
| theme | A string indicating a defined map canvas theme of representation |
217
+
| around_border | A floating number representing the amount of a void border around the output image. This parameter is not considered when scale_denominator is specified (default = 0.1) |
0 commit comments