Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dasmy
Copy link
Contributor

@dasmy dasmy commented Mar 10, 2025

Without this change, the background (if filled with color) is by the factor scale larger than it should be, see first picture below (qrcode.pdf opened with Inkscape). This is fixed by moving the scaling matrix (cm command) below creation of the background rect (re f q). This creates the background scaling in the second image below.

Note that - because the MediaBox is identical in both cases, this issue is not visible with standard pdf viewers that just crop at the media box.

image

image

@heuer heuer merged commit 7046d3b into heuer:master Mar 10, 2025
6 checks passed
@heuer
Copy link
Owner

heuer commented Mar 10, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants