Set imageableArea through options in PrintImage.#1410
Set imageableArea through options in PrintImage.#1410antoineveldhoven wants to merge 1 commit intoqzind:masterfrom
Conversation
62a2db3 to
872c954
Compare
|
Converted to draft; awaiting test results, will come back on this next week. |
|
Thanks! Curious why copilot is spamming our tracker though. I've never seen this before and it's certainly not welcome on our tracker. Copilot typed more than the original PR description, it's pollution is not welcome and I'll block if from the repository if it continues. |
Do you mind filing a bug report describing what you're trying to achieve so that we can approach this PR from the same perspective as you? Currently we support printing images at their natural DPI and scaled to fit the paper. I assume you want something in between. If you can provide a use-case (sample image, paper size and a description of what it's not doing correctly) that'll help considerably in accepting this. With regards to the PR, it's simple enough and should be pretty quick to review and merge. I'll tag @akberenz for a second set of eyes as she's been predominantly in charge of the 2D printing changes. For example, I wouldn't expect to have to reassign the Paper object the way it's done, but it's a copy of the PDF code so maybe Paper passed by value. |
@tresf will do! |
This is an option I have enabled; will turn it off, at least for this repo. Sorry for spamming |
|
@akberenz Thanks for your review and suggestions; let me do some testing regarding the scaling tomorrow. |
FWIW, I'm fine with the static code analysis (it did find a mistake after all), I just don't like a bot "summarizing" with more text than the PR, so please use as-needed, my response was probably overly harsh considering it caught a bug in the code changes. |
872c954 to
4565766
Compare
|
This PR aims to fix issue #1413 By supplying the size in the config we can specify the custom PageForm / ImageableArea. This results in the following image
|


Fixes #1413