8000 do not apply scaling to pdf background by dasmy · Pull Request #145 · heuer/segno · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

do not apply scaling to pdf background #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged

do not apply scaling to pdf background #145

merged 1 commit into from
Mar 10, 2025

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
0