![]() |
#271 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
|
Hey, thanks a lot for your program. However, there seems to be a problem with the latest version (1.63 32-bit). It keeps on rising its memory usage on both Windows and Linux until there isn't any more memory left. Here's the final part of the output:
Code:
SOURCE PAGE 123 of 360 (8.5 x 11.0 in) ... 2 new pages saved. SOURCE PAGE 124 of 360 (8.5 x 11.0 in) ... 3 new pages saved. error: malloc of array (4664 x 7208 bytes) failed ** ERROR reading from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdfusing MuPDF. Trying Ghostscript... ** ERROR reading page 125 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 126 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 127 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 128 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 129 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 130 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 131 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 132 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 133 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** ERROR reading page 134 from /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf. ** (No more read errors will be echoed for file /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas.pdf.) 275 pages written to /home/pedro/Dropbox/IST/2011 Fall/PE/2010-09-12-NotasApoioPE-EdRevista-SeccaoFolhas_k2opt.pdf (8.9 MB). Press <ENTER> to exit. Last edited by Fanhoso; 12-29-2012 at 05:01 PM. Reason: clarification |
![]() |
![]() |
![]() |
#272 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Thanks. I've looked into this and fixed it for the next release. It was a memory leak in the new code that I added to make multi-column detection faster. I'll try and get a new release out reasonably soon. Meanwhile, you should be able to get around this by using the -p option to limit the number of pages converted.
Last edited by willus; 12-29-2012 at 08:40 PM. Reason: Found the issue |
![]() |
![]() |
Advert | |
|
![]() |
#273 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Can you post a screen shot of the error? Are you sure you have write permission to the folder the PDF files are in? What version of k2pdfopt were you running before--do you know?
|
![]() |
![]() |
![]() |
#274 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
|
Quote:
Great! Glad you found the leak so quickly ![]() Now, is it possible to make k2pdfopt cut every page in a file in two approximate halves so as not to cut through any text? For example, by telling it to output exactly 2 pages for each input page and to assume device height of half the input page height? Last edited by Fanhoso; 12-29-2012 at 09:51 PM. Reason: clarification |
|
![]() |
![]() |
![]() |
#275 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
k2pdfopt -grid 1x2x5 ... will split each source page into a 1 x 2 grid with 5% overlap. It will not try to break between lines, though. You also have to manually specify the device width and height with -w and -h. You could also try: k2pdfopt -mode fw -ls- ... This will fit the (cropped) width of the source page to the device width and put as much of each source page as it can on each destination page, breaking at intelligent places. Use -bp to force a destination page break wherever there is a source page break. If you don't want the source page margins trimmed, add -t- to your options. |
|
![]() |
![]() |
Advert | |
|
![]() |
#276 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2012
Device: kindle keyboard
|
All error messages when running from all (few) folders and all the various pdfs are the same: "cannot open <pathname>" and all the folders are ones I'm in and out of all the time, reading, 'riting, and 'rithmaticing.
Plenty of disk space. The previous version? Don't know but prolly 'bout 3 years ago. The 32 bit now up says 1.34a (I thought it said 1.63 on the download page?) I don't recall - didn't even notice - what the top line of the 64-bit version said, the "1.63" I downloaded. Please notice that the "quote message in reply?" line is broken. Last edited by eleaticus; 12-30-2012 at 01:47 AM. Reason: typos & forgotten thankful thank you |
![]() |
![]() |
![]() |
#277 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
BTW, seeing as k2pdfopt has only experienced significant downloading activity since July 2011, I don't think your last version was 3 years old. ![]() |
|
![]() |
![]() |
![]() |
#278 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
|
Quote:
Awesome. Grid option is about what I wanted. And it doesn't leak memory! Which leads me to another question: setting an option via the interactive menu (either by e.g l or -ls) takes precedence over the default mode, right? So if I set any option (even if it's not set in the default mode), the mode is ignored and only the option that I set is used? |
|
![]() |
![]() |
![]() |
#279 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
k2pdfopt option precedence
Quote:
BTW, the next release will be able to automatically size the output pages to the trimmed source page sizes, as you requested. |
|
![]() |
![]() |
![]() |
#280 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Dec 2012
Device: Kobo Glo
|
Quote:
And why is it that if I use -grid it doesn't leak memory, if, from what I understood, all the default options are still used? Is it because it sets -col 1? And thanks for the added functionality - look forward to use it ![]() |
|
![]() |
![]() |
![]() |
#281 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
Last edited by willus; 12-30-2012 at 06:00 PM. |
|
![]() |
![]() |
![]() |
#282 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#283 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
OSX GUI for k2pdfopt
|
![]() |
![]() |
![]() |
#284 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
k2pdfopt v1.64 released
K2pdfopt v1.64 is released. This version improves the native PDF output so that contents from multiple source pages can reliably be displayed on one output page. It also has some other minor new features and a memory-leak bug fix. See the web site for details.
|
![]() |
![]() |
![]() |
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewing PDFs with another font | Font | PocketBook | 4 | 11-12-2010 08:27 AM |
Viewing Textbook PDFs... | NJReader | enTourage Archive | 4 | 08-17-2010 05:17 PM |
PRS-600 Restart bug while viewing PDFs? | conundrum | Sony Reader | 2 | 03-04-2010 08:46 PM |
More on viewing pdfs | dso371 | Bookeen | 8 | 03-11-2008 07:15 PM |
Viewing Untagged PDFs on Palm T|X | Eroica | Reading and Management | 3 | 12-10-2007 01:44 PM |