Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 14
Posts: 14   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 6575 times and has 13 replies Next Thread
locofocos
Newbie



United States
Joined: Jan 12, 2020
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Mar 23, 2020, 1:06:13 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3448
Status: Offline
Reply to this Post  Reply with Quote 
Re: Print to Scale to PDF without Pagination

I fully agree!
----------------------------------------
Dual boot - AMD FX6300 6-core, 16GB ram
Windows 10 Pro, SH3D 6.2 with 8 GB memory allowance
Ubuntu 18.04, SH3D 6.2 with 2 GB memory allowance
[Mar 23, 2020, 3:40:00 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 7064
Status: Offline
Reply to this Post  Reply with Quote 
Re: Print to Scale to PDF without Pagination

In case you didn't notice, you can already force a given margin by setting the system property com.eteks.sweethome3d.swing.fixedPrintMargin to a value in mm (see the article about version 4.1).
The page size itself should be managed by the printer driver, shouldn't it?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Mar 23, 2020, 9:09:38 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 3448
Status: Offline
Reply to this Post  Reply with Quote 
Re: Print to Scale to PDF without Pagination

Recently I tried to print a plan on A3 paper. First I did a test-print (scale 1:100) on A4. Satisfied, I scaled up to A3.
Although there should have been more than enough space on the paper, the program cut the plan in two and divided both halves over two sheets of A3.

So, there is room for improvement, unless of course I am doing something wrong.

H
----------------------------------------
Dual boot - AMD FX6300 6-core, 16GB ram
Windows 10 Pro, SH3D 6.2 with 8 GB memory allowance
Ubuntu 18.04, SH3D 6.2 with 2 GB memory allowance
[Mar 23, 2020, 10:38:52 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 14   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2020 eTeks - All rights reserved