3

When I export to PDF or SVG, the layout changes and doesn't look the same as in QGIS. How do I get it right when exporting?

How it looks in qgis and how it should be:

enter image description here

When exporting to PDF:

enter image description here

And SVG: enter image description here

2
  • 1
    I guess you are using a diagonal hashed filling?
    – Erik
    Jun 3 '20 at 12:06
  • It is perfectly possible to export diagonal hashed fillings, but they will look like your 2nd picture all the time.
    – Erik
    Jun 3 '20 at 12:21
6

Hashed fillings for simple polygon symbologies tend to behave undesirable when exporting images. This is - at least I think - due to the fact that they are based on dots per inch.

Anyway, there is a workaround. Have a look at the following (German) screenshot:

enter image description here

First, use the green plus at the top right of your layers symbology dialogue (first red box) to add a new layer to your symbology.

Secondly, change your symbology layer type from a simple one to a linear filling using the dropdown menu below (second red box).

Thirdly, adjust the linear filling to your liking (roation, line width, colour, space between lines).

Last but not least, for your original symbology, change the filling from "diagonal hashed" to "none".

The second symbology layer is necessary, since linear filling has no border. Now the exported images should be more to your liking.

2
  • It worked. Thanks Jun 3 '20 at 12:54
  • 2
    Feel free to upvote any helpful answers and accept the one which helped you most - this way others users with similar issues may find their solution quicker @PeterAndresen
    – Erik
    Jun 3 '20 at 13:01
1

Do you export at 100dpi? Or higher? If you export at 300dpi your textures will 3x smaller.

2
  • Please refrain from adding comments/questions for clarifications as answers - instead add a comment.
    – Erik
    Jun 3 '20 at 14:19
  • 1
    Please edit your answer to expand on your statement and gives steps to solve the problem.
    – Midavalo
    Jun 3 '20 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.