PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the Board Administrator.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Djvu to Pdf eBook converter
Post subject:  Re: Djvu to Pdf eBook converter
Thank you!
    Post Posted: 13 Jul 2012, 15:37
 
Post subject:  Re: Djvu to Pdf eBook converter
cd %TEMP% should bring you to the directory with the images. Their names are prefixed with spool

-X512m - requests to limit Java's heap size by 512 MB. You may try -X1500m, or -X2g

Some older Java implementations ignore the parameter if it is greater than 1000MB. Most probably the problem is already solved by modern Java runtimes, but after some bad experience I am still very careful with the values.
    Post Posted: 13 Jul 2012, 15:32
 
Post subject:  Re: Djvu to Pdf eBook converter
It doesn't let me save. Isn't there some temporary folder, where the images are stored?

Also, what does -Xmx do? Could it be used with random numbers or just 512 and 980. Is there a bigger amount I can use?
    Post Posted: 13 Jul 2012, 15:22
 
Post subject:  Re: Djvu to Pdf eBook converter
> Ooh, I got the error 10 pages before the end. Can I somehow save what's already converted?

In normal situations after "Cancel" you can save. After OutOfMemory error - it depends.
    Post Posted: 13 Jul 2012, 15:11
 
Post subject:  Re: Djvu to Pdf eBook converter
"Double cancel" is a feature. A first click lets child processes gracefully end. After that the button label changes to "Close". And before a closing you have a chance to save already converted pages as PDF.

Now I see we need to change the behavior to be less visually confusing. Probably it should change the button label quicker.

The occasional application terminations, I guess, are also caused by memory shortage. We'll re-check it.
    Post Posted: 13 Jul 2012, 15:09
 
Post subject:  Re: Djvu to Pdf eBook converter
Ooh, I got the error 10 pages before the end. Can I somehow save what's already converted?
    Post Posted: 13 Jul 2012, 15:06
 
Post subject:  Re: Djvu to Pdf eBook converter
I did the -Xmx trick you suggested. I'm halfway there now. A friend had the same problem and it worked for her, too. Thank you again, for the attention. I use 800x600 px and I guess it's not too large. I might offer some more feedback on the product. Sometimes when I switch pages or check some of the checkboxes the application just terminates. Also, when I want to click "cancel" when converting I need to do it twice to work. I don't know if it's intentional. Still, awesome program!
    Post Posted: 13 Jul 2012, 14:46
 
Post subject:  Re: Djvu to Pdf eBook converter
Yes, that is the reason, I guess. It cannot allocate memory enough to store pre-cached image representations of book pages. Can it be you defined a huge end device screen resolution (WxH)? Or may be it is a big "image scale" value in "Adjust image quality" dialog?

A workaround would be to give a bigger heap size limit to Java. For example replace -Xmx512m with -Xmx980m. It can be done either in the command line or in the shortcut properties (in Start Menu)

BTW: thank you for the DJVU file. On my PC it stuck on page 211 also because of out of memory. It seems we need to optimize memory deallocation/garbage collection.
    Post Posted: 13 Jul 2012, 14:29
 
Post subject:  Re: Djvu to Pdf eBook converter
I sent the file, but I also tried another and it got stuck on p. 14 so I believe the problem is somewhere in my system. I also noticed an error in the command prompt.

Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
n Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at org.zefer.djvupdf.ConversionInProgressDialog.prepareImage(ConversionI
nProgressDialog.java:677)
at org.zefer.djvupdf.ConversionInProgressDialog$RunExport.run(Conversion
InProgressDialog.java:403)
    Post Posted: 13 Jul 2012, 14:14
 
Post subject:  Re: Djvu to Pdf eBook converter
Are there any error messages by page 18?

Would it be possible to send us (support pd4ml com) the DjVu file to test on our workstations? Hopefully there is no sensitive info in it.
    Post Posted: 13 Jul 2012, 13:10
 


cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share