Print at Feb 7, 2026, 6:04:35 PM
Posted by mariora at May 10, 2010, 10:58:14 PM
smile   print on pdf does not work in my linux box
Hallo! Great program, I have linked the url to all my friend!
I am working with it since yesterday with Ubuntu 10.04, and I have few problems that I am going to solve. Only one is important: I cannot save in pdf Format. The file that sweethome create is not readable, and has a 0 Bite length.
what can I do?
Thank you, mariohttp://www.sweethome3d.eu/support/mvnplugin/mvnforum/images/emotion/smile.gif

Posted by Puybaret at May 10, 2010, 11:12:53 PM
Re: print on pdf does not work in my linux box
If you have no error message dialog, then there must be an error printed in the console when you launch SweetHome3D command under the console.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by hansmex at May 11, 2010, 12:19:31 AM
Re: print on pdf does not work in my linux box
Mariora:

Strange... on my Ubuntu 10.04 I get a perfect PDF...

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by mariora at May 11, 2010, 8:46:51 AM
Re: print on pdf does not work in my linux box
Yes, i have no error message dialogue, what I have to do for launching SweetHome3D commend under the console to see if there are errors printed?
thank you for the help
mario

Posted by Puybaret at May 11, 2010, 9:17:44 AM
Re: print on pdf does not work in my linux box
Select Applications > Accessories > Terminal.
Drag and drop SweetHome3D icon in the Terminal window.
Type enter in the Terminal window to launch program.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by mariora at May 12, 2010, 10:42:14 AM
Re: print on pdf does not work in my linux box
I have launched SweetHome3D from the terminal, I have imported a house and then I have tried to print in PDF. Below I report the error message:
mariora@mariora-desktop:~$ sweethome3d
java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException
at com.eteks.sweethome3d.swing.HomePane.printToPDF(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$30.call(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$30.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: Class com.lowagie.text.DocumentException
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at com.eteks.sweethome3d.tools.ExtensionsClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 12 more
mariora@mariora-desktop:~$
can you understand where is my problem?
Thank you mario

Posted by Puybaret at May 12, 2010, 1:13:56 PM
Re: print on pdf does not work in my linux box
I think the iText-2.1.7.jar file is missing in the subfolder lib in folder SweetHome3D-2.3. Can you check please?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by mariora at May 12, 2010, 5:00:32 PM
Re: print on pdf does not work in my linux box
I have found the file /usr/share/sweethome3d/SweetHome3D-2.3.jar using the "locate" command.
(mariora@mariora-desktop:~$ locate SweetHome
/usr/share/sweethome3d/SweetHome3D-2.3.jar)
Inside it (after double clicking on it) i have could seen various files, and among them the file iText-2.1.7.jar
I have no directories named SweetHome3D-2.3. I have to extract SweetHome3D-2.3.jar? and if yes, in which way?
I am sorry, I know I am clumsy
mario

Posted by ChrisOfBristol at Oct 8, 2011, 6:18:40 PM
Re: print on pdf does not work in my linux box
I am running Ubuntu 11.04 and have exactly the same problem as mariora, - the PDF file is empty. I get no error message, and have checked for the presence of iText-2.1.7.jar.

Posted by hansmex at Oct 8, 2011, 6:55:37 PM
Re: print on pdf does not work in my linux box
Chris,

I also use Ubuntu 11.04 and have no problems.

Which version of SH3D are you using? How did you install it?
You could try and use GetDeb for an easy install.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by ChrisOfBristol at Oct 8, 2011, 8:09:32 PM
Re: print on pdf does not work in my linux box
Hans
I'm using version 3.3, Java 1.6.0_2_2. I find that if I install it using the "Ubuntu Software Centre" or by the method in your link, it just shows the startup screen then disappears. I tried running it using the advice in the FAQ "How can I disable 3D features in Sweet Home 3D" and that worked (without 3D) so I then tried removing ".no3D=true" and that works (with 3D), so I have stuck with that. The only problems I have found are the PDF printing one in this thread and that "Create Video" crashes after a while.
Great program by the way!
Chris

The command I use is:
java -Dcom.eteks.sweethome3d -jar /home/user/Documents/SweetHome3D/SweetHome3D-3.3.jar

Posted by hansmex at Oct 8, 2011, 9:22:58 PM
Re: print on pdf does not work in my linux box
Chris,

In the past, before U-11.04, I've had some problems as well. When I install SH3D, I never use the Java Web Start version, but always the installed version. In my case the 64 bit version. I first delete or uninstall all Java versions. I then download and unzip SH3D in its own directory. I can then start the program by double-clicking SweetHome3D, a shell script of 771 bytes.

When you open the script with gedit, you will see that it defines or loads a lot of things. What may be of interest to you is -Xmx????m. This sets the amount of memory SH3D can use. If you have enough memory, you could set it to -Xmx2048m. This may solve the problem you encounter when creating videos.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by ChrisOfBristol at Oct 9, 2011, 9:11:54 PM
Re: print on pdf does not work in my linux box
Hans

I'm a bit confused about what you are recommending, perhaps I don't understand the terminology. Your statement (1) suggested that the Software Centre was used to install the program, whereas (2) suggested that you just downloaded the program.

I never use the Java Web Start version,

I couldn't make that work so don't use it.

but always the installed version (1)

When I use the Ubuntu Software Centre or your link it doesn't work.

I then download and unzip SH3D in its own directory (2)

As mentioned above, this is what I am using, although I haven't unzipped the .jar file.

I can then start the program by double-clicking SweetHome3D, a shell script of 771 bytes.

I could not find a shell script. I use
java -Dcom.eteks.sweethome3d -jar /home/user/Documents/SweetHome3D/SweetHome3D-3.3.jar

I hope this clarifies my confusion - if you see what I mean!
Chris

Posted by hansmex at Oct 9, 2011, 9:59:03 PM
Re: print on pdf does not work in my linux box
Chris,

Use one of these links: Linux 32 bits or 64 bits. Both will give a TGZ-file, which is a compressed file. Normally the Archive Manager should open to unzip the file. When unzipping the file, you can specify a directory. The result will be a "main" directory with two subdirectories: one called jre1.6.0_26 and the other called lib. In the main directory you will find 10 or so text files that specify all kinds of copyright info. AND there is the small shell script I mentioned before.

I can't make it easier than that.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by Puybaret at Oct 9, 2011, 11:28:04 PM
Re: print on pdf does not work in my linux box
For your information, I noticed that under Ubuntu 11.04, using Ubuntu classic with no
effects works better with Sweet Home 3D for some video drivers. If you want to switch to Ubuntu classic, choose System > Administration > Login Screen, then select Ubuntu Classic (No effects) in the drop down list at the bottom of the Login Screen Settings dialog box.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by hansmex at Oct 10, 2011, 12:24:01 AM
Re: print on pdf does not work in my linux box
Chris,
Emmanuel,

In case it helps, I'm using the classic interface.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by ChrisOfBristol at Oct 10, 2011, 3:31:02 AM
Re: print on pdf does not work in my linux box
Hans

Thanks - that's easy enough to follow. I've downloaded the 32 bit version and it is as you describe and the shell script is there. The PDF file output now works. The video creation also works provided I keep it short and the size no bigger than 720x540. That'll do for me.
My computer's memory is 1GB so I can't increase the figure in the shell script.


Emmanuel
I have been using Ubuntu Classic with Effects (although they don't work!).

Chris

Posted by hansmex at Oct 10, 2011, 3:59:42 AM
Re: print on pdf does not work in my linux box
Chris,

Glad it works now.
There's a trick that may solve (part of) your video problem. When you have decided how the picture should look, make all objects invisible that will not appear in the video. This reduces the amount of memory needed.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info