Skip to content
← Back to Map layouts in QGIS: from template to automated map series
Map layouts · Part 10 of 18Beginner· 7 min readSources

Export a QGIS Layout, Reopen It and Check It

Export the finished layout as a PDF and as images, choose a resolution that suits the use, and then reopen the files and check them properly, because the preview in the layout window is not the result.

The layout window is a preview. What matters is the file that you export and send. Fonts, lines, transparency and raster layers can look different in the file, and a clipped label or a blurred note is easy to miss on the screen. This last page of Part B exports the map and shows how to check the result. The note on export and final checks explains the reasoning in more detail.

Step 1: Choose the export resolution

Open the Layout tab next to Item Properties and look at Export Settings.

The Layout tab with the Export Settings group open: export resolution 300 dpi and the options Print as raster, Always export as vectors and Save world file
Figure 10.1. Export Settings in the Layout tab. The default is 300 dpi.

The export resolution is the number of dots per inch in a raster export. It does not change a PDF's vector parts. The default of 300 dpi suits printing. For a web page or a slide, a lower number is usually enough.

I exported the same A4 layout at three resolutions to see what the choice does:

ResolutionImage size in pixelsPNG file sizeGood for
96 dpi1122 × 7930.2 MBA quick look on screen
150 dpi1753 × 12400.4 MBA web page or a slide
300 dpi3507 × 24800.9 MBPrinting, and a close look at small text

A higher resolution makes a bigger file and does not improve poor source data. It only gives the same drawing more pixels. Choose for the use, not for the biggest number.

Two other options are worth knowing. Always export as vectors keeps shapes as lines and fills in a PDF, so you can zoom in without losing sharpness. Print as raster turns the whole page into a picture, which is a last resort when a vector export looks wrong.

Step 2: Export

Open the Layout menu and choose Export as PDF, Export as Image or Export as SVG.

The Layout menu with Export as PDF highlighted
Figure 10.2. Layout > Export as PDF.

QGIS asks where to save the file, then shows a dialog of options. For this map:

  • PDF: the default options are fine. Leave Always export as vectors ticked if you offer it. Tick Create Geospatial PDF only if a reader needs to read coordinates from the file.
  • Image: pick PNG, set the resolution and keep Antialiasing on.

Name the files so that you can tell them apart: parks_and_lakes_map.pdf, parks_and_lakes_map_150dpi.png. Do not call them final, final2 and final_really.

Save the project as well. The project, the data and the layout are the editable original. The PDF is only the result.

Step 3: Reopen the file and look at it

Close QGIS, or at least the layout window. Open the PDF in a PDF viewer. Do not check only the first screen. Go through this list:

  1. Is everything there? Title, subtitle, map, legend, locator, scale bar, north arrow, scale note and source note.
  2. Is any text clipped? Read the last words of the source note and the title. A label that was too small on screen can be cut off in the file.
  3. Is the small text readable? Zoom to 200 percent. If you cannot read it at the size it will be used, it is too small.
  4. Do the colours look right? Compare the legend colours with the map.
  5. Do the lines look right? Hairlines, the frame and the grid should all be visible.
  6. Is the file the right size? A PDF with a few raster layers should be well under 10 MB. A huge file may contain an image that is far too large.
  7. Does it match the layout? Place the PDF beside the layout window. Differences point to raster rendering, transparency or font problems.

Here is a case where the resolution matters. This is the source note, cropped from the 96 dpi image.

The source note at 96 dpi: the text is readable but soft and small
Figure 10.3. The source note at 96 dpi.

The same note from the 300 dpi image:

The source note at 300 dpi: the text is sharp and easy to read
Figure 10.4. The same note at 300 dpi.

At 96 dpi the text is soft and tiring to read. At 300 dpi it is crisp. If the page will be projected, small text like this is also a sign that the font is too small for that use. Use the checklist from the Map Design notes: map-quality-checklist.md.

Finally, look at the whole map as a stranger would.

The exported 150 dpi image of the finished layout: title, map with coordinate frame, legend, locator map, scale bar, north arrow, scale note and source note
Figure 10.5. The exported map at 150 dpi.

Ask yourself: can I tell what this map is about in five seconds? Is anything missing, overlapping or crowded? Is the source note complete? If you have to explain the map, change the map, not your explanation.

Step 4: Keep the editable files

The deliverable is a PDF or an image. The source is the project, the data and the layout. Keep them together, in a folder with a clear name, and note the date. Next month, when someone asks for a change, you will be glad.

When it breaks

What you seeWhyWhat to do
The PDF looks different from the layoutRaster layers, transparency or fonts render differentlyTry Always export as vectors, or Print as raster as a last resort
Text is cut off in the fileThe label is too small for its textMake the label bigger, shorten the text, and export again
The image is blurryThe resolution is too lowExport at 300 dpi
The file is very largeA large raster layer or a very high resolutionLower the resolution, or simplify the data
Fonts look wrong on another computerThe font is not installed thereUse a common font, or export as PDF
The export failsThe folder is not writable, or the file is open in another programPick another folder and close the file

Make it your own

  1. Export the PDF and the 300 dpi PNG. Open both. Which would you send by email, and which would you print?
  2. Set the source note to 5 point, export, and look at it at 100 percent. Would you accept this on a map you publish?
  3. Use the checklist on your own export. Which item fails?

Common mistakes

  • Judging the map by the layout window and never opening the file.
  • Choosing the highest resolution for everything.
  • Exporting only once. Export again after every change.
  • File names such as final2.
  • Losing the project and keeping only the PDF.

Key takeaways

You have now built a complete map by hand and saved it as a template. The next page of the series starts to automate it.