paperbox icon indicating copy to clipboard operation
paperbox copied to clipboard

Center generated box in drawBox on the PDF

Open YanWittmann opened this issue 8 months ago • 1 comments

I've been using this tool recently for several projects, and it somewhat bugged me that I always had to switch to a larger print size because the generated box was not centered on the generated PDF. I have made a change to the code (which is also a simplification of the positioning logic) that will center the generated box on the PDF.

I'm fine in case this is not merged, I'll work with my fork then. I'd ask for someone to review the code one more time, just in case I misunderstood something.

YanWittmann avatar Mar 18 '26 12:03 YanWittmann

I just noticed that my autoformatter replaced all tabs with spaces, and removed tabs from empty lines. If this is an issue, I can change this back.

YanWittmann avatar Mar 18 '26 15:03 YanWittmann
Before After
grafik grafik