|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: Print to Scale to PDF without Pagination » » » » Post: Re: Print to Scale to PDF without Pagination |
Print at Dec 18, 2025, 12:32:13 AM |
| Posted by locofocos at Mar 23, 2020, 1:06:13 AM |
|
Re: Print to Scale to PDF without Pagination I've been desperately trying to get a scaled PDF in a large size. I've tried across my Windows, Ubuntu, and Mac system, and none of those are letting me set a custom page size for PDF export. I also tried gabeblack's suggestion above. One thing that mostly worked is the "Export to SVG" option, plus careful measuring and manual tweaking in GIMP. That got something pretty close, but it's maybe 1 percent off after printing on the large-scale printer at Kinko's. I'd like to propose another option. I found that I can make some code tweaks locally and get the desired PDF I want. I had to modify PageSetupPanel.updateController() and hardcode the desired width, height, and margins I want for the values being passed into HomePrint. Then in HomePrintableComponent, I had to comment out the call to "printerJob.validatePage(pageFormat)". After doing that, I have a lovely PDF in the exact size I need. Here's the "poor man's" gist if anyone wants it. Download the source code, make these changes, built it according to README.TXT, and profit. https://gist.github.com/locofocos/362566f0119a68664a3da115aa2d2a80 I think it would make a ton of sense to add a few input elements here to allow end users to do this. In the PageSetupPanel, we could have an option "Override page width/height/margins". Then we could add an additional checkbox, "Force override (if override doesn't work". That boolean property would be put into the HomePrint object, then if that's set to true, skip the call to "printerJob.validatePage(pageFormat)" later on. I think this would add a lot of value to this program, for people using it to design homes who want an accurate scaled PDF. |
|
|
Current timezone is GMT Dec 18, 2025, 12:32:13 AM |