New answers tagged print-composer
0
votes
Make QGIS report use raster rather than vector images in its PDF export
My previous answer is based on the Print layout, while the question is based on Reports. Luckily the relevant parts look very alike so in essence it worked.
Sadly in the reports engine this resolution ...
3
votes
Accepted
Make QGIS report use raster rather than vector images in its PDF export
Print as raster
In the print layout composer you will find a number of tabs: {Item properties|Layout|Guides|Atlas}.
On the Layout tab, scroll down to the Export settings.
There you can turn on ...
0
votes
Is there any way to link the current map scale in the print layout to a text box?
If you ever need to place the scale in the table you can use this (change 'Map 1' to the name of your map)
'1:'||round(map_get(item_variables('Map 1'),'map_scale'),0)
This if pasted into a table ...
7
votes
Accepted
Working with expressions inside variables in QGIS
Interesting question, as far as I know these variables can only be static string values. But you can pass these string values to eval() to evaluate as an expression.
First store your @maptype variable ...
2
votes
Accepted
QGIS atlas feature: Storing information from coverage layer in an atlas variable
There is no need to store the attributes of the coverage layer in an atlas variable, because a reference to the coverage feature of the current atlas page is stored in the @atlas_feature variable.
So ...
2
votes
QGIS print layout: Dynamic text with attributes from different layers with different geometry
Use this expression to calculate the mean value of the field value from layer points, but only for points features overlapping the current atlas feature:
array_mean (overlay_intersects ('points',"...
0
votes
Accepted
Dynamically filtering feature count in QGIS Atlas, Legend
Use the following expression. Delete your expression from the header, but insert it directly to the legend of the categorised entries if you want to create the number of feautures dynamically in the ...
0
votes
Accepted
Write QgsPrintLayout content into docx file with pyqgis
in the end I used the library "python-docx".
I managed to create and fill text areas and tables. However, I did not have time to try loading images in the docx.
Top 50 recent answers are included
Related Tags
print-composer × 1529qgis × 1194
pyqgis × 170
qgis-3 × 144
legend × 140
atlas × 140
printing × 107
qgis-2 × 92
layouts × 72
labeling × 67
expression × 52
export × 48
grids-graticules × 47
scale × 44
pdf × 43
attribute-table × 42
python × 38
pyqgis-3 × 32
coordinate-system × 31
scale-bar × 30
qgis-plugins × 29
mapping × 27
symbology × 24
cartography × 21
svg × 19