Skip to content

Commit 5d1fa41

Browse files
committed
readme updt
1 parent 59a83d3 commit 5d1fa41

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
The plugin makes use of python templating libraries for creating reports from data within current QGIS project in the following formats:
66

77
- 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)
911

1012
## python dependencies
1113

@@ -174,7 +176,7 @@ For Any template object, globals, layers features and print layouts, a image fil
174176

175177
## ODT report generation
176178

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.
178180

179181
![](support/rwl1.png)
180182

@@ -188,7 +190,7 @@ The odt template engine will replace the placeholder image with the new rendered
188190
{{ globals|image() }} {{ feature|image() }} {{ feature.attributes.picture|image() }}
189191
```
190192

191-
the image filter have the following optional parameters:
193+
the odt image filter has the following optional parameters:
192194

193195
| parameter | |
194196
| ----------------- | ------------------------------------------------------------ |
@@ -199,3 +201,17 @@ the image filter have the following optional parameters:
199201
| theme | A string indicating a defined map canvas theme of representation |
200202
| 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) |
201203

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:
209+
210+
| parameter | |
211+
| ------------- | ------------------------------------------------------------ |
212+
| 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

Comments
 (0)