11-16-2008, 12:03 AM | #1 |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
soPdf - Better than Yet another PDF to LRF converter
I really liked the pdflrf tool from the "Yet another PDF to LRF converter" thread, but it has been taken down by the moderator for violation of GPL and has been down for quite some time because it seems like the author is not interested in providing the source for his tool. But there are some issues with the pdflrf tool.
The advantages of soPdf over pdflrf
Code:
about: soPdf author: Navin Pai, soPdf ver 0.1 alpha usage: soPdf -i file_name [options] -i file_name input file name -p password password for input file -o file_name output file name -w turn off white space cropping default is on -m nn mode of operation 0 = fit 2xWidth * 1 = fit 2xHeight 2 = fit Width 3 = fit Height 4 = smart fit Width (not yet implemented) 5 = smart fit Height (not yet implemented) -v nn overlap percentage nn = 2 percent overlap * -t title set the file title -a author set the file author -b publisher set the publisher -c category set the category -s subject set the subject -e proceed with errors -r reverse landscape * = default values
http://sopdf.googlecode.com To compile the source code you will need Visual Studio 8.0 (Even free edition will work). Visual studio is not required if you just want to run the soPdf tool. If you are having issues running the binary then make sure you have VC runtime library. You can download the VC runtime library from Microsoft website. Coming soon
Last edited by theguru; 11-23-2008 at 11:07 PM. Reason: Bug fixes |
11-16-2008, 08:42 AM | #2 |
Connoisseur
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Thanks for your effort.
I am not an user of Windows, so I wonder if anyone could upload an example of an input file and an output file. |
Advert | |
|
11-16-2008, 10:54 AM | #3 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
I'd suggest you to try recoding the prs-505's manual again,it seems kind of buggy!
|
11-16-2008, 12:55 PM | #4 |
Addict
Posts: 274
Karma: 332
Join Date: Nov 2003
Location: San Francisco, USA
Device: Sage, Elipsa, Oasis, Galaxy Tab 8U, S22U
|
Does this mean I need VC runtime (have no idea what it means)?
Error: .\mupdf\pdf_xref.c(459) : pdf_loadindirect() - cannot load indirect objec t 1586 Error: .\mupdf\pdf_xref.c(442) : pdf_loadobject() - cannot load object 1586 into cache Error: .\mupdf\pdf_xref.c(416) : pdf_cacheobject() - found object 1636 0 instead of 1586 0 |
11-16-2008, 02:09 PM | #5 |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
This bug has been fixed.
Last edited by theguru; 11-17-2008 at 02:30 AM. |
Advert | |
|
11-16-2008, 02:12 PM | #6 | |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
Quote:
|
|
11-16-2008, 04:52 PM | #7 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quite an excellent app. This tool provides the feature I have been sorely looking for. I have some scripts that do remove the margins but none provided this level of success. I have a feeling this tool will become my new favorite PDf tool.
This tool does struggle with the more complicated PDF but for those there are PDFLRF/PDFRead/PaperCrop Thanks. One recommendation is since the tool is written in CPP there is no reason to tie it to one platform. There is a surprising large number of users on this board that use Linux/Mac OSX. Thank you, =X= Last edited by =X=; 11-16-2008 at 07:53 PM. |
11-16-2008, 06:22 PM | #8 |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
I am working on fixing the bugs for the complicated pdf's. And yes it can be easily ported to any platform. There is no platform specific stuff in the code and since the source is available, anyone who is interested in creating a port for Linux/Mac is welcome to do so.
|
11-17-2008, 12:36 PM | #9 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
So far I've only managed to get PDF to PDF working here.
So how do I convert it to LRF,or do you suggest keeping those documents in PDF? (BTW thank you for the program,I've only had a brief look at it) |
11-17-2008, 12:46 PM | #10 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
So far I've only managed to get PDF to PDF working here.
So how do I convert it to LRF,or do you suggest keeping those documents in PDF? (BTW thank you for the program,I've only had a brief look at it) |
11-17-2008, 01:35 PM | #11 |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
That was the original plan. I wanted to keep the files in pdf format. These reformatted pdf files can be read easily on the reader.
|
11-17-2008, 05:11 PM | #12 |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Okay I found my first bug. It seems bookmarks on PDF are getting removed from the PDF.
These are bookmarks in the PDF used by the SONY reader for the table of contents. =X= |
11-17-2008, 05:15 PM | #13 |
Guru
Posts: 860
Karma: 4380
Join Date: Feb 2008
Location: Almada, Portugal
Device: Cybook Gen3, Sony PRS 505, Kindle DXG and Samsung Galaxy Note
|
Not bad at all.
Big files resulting from scanning still crash my Cybook or are so slow that hey are useless, but text ones (with images or not) are quite good! One more info: does not convert PDF files with monochrome images JBIG2 compressed, CCITT Group 4 compressed, no problem. Bets regards, |
11-17-2008, 05:39 PM | #14 |
Member
Posts: 19
Karma: 139
Join Date: Nov 2008
Device: Sony PRS-505
|
I am aware of the issue. I do not quite understand how the bookmarks work in PDF file. I will update the tool once I do or if anyone here does understand how bookmarks work then they are free to update the source.
|
11-17-2008, 07:29 PM | #15 |
Guru
Posts: 860
Karma: 4380
Join Date: Feb 2008
Location: Almada, Portugal
Device: Cybook Gen3, Sony PRS 505, Kindle DXG and Samsung Galaxy Note
|
One question: any plans on evolving into a gui with options to choose from?
Last edited by DDHarriman; 11-17-2008 at 07:45 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Yet another PDF to LRF converter | cacapee | LRF | 583 | 11-28-2011 07:50 AM |
comiclrf - Comics(CBZ) to LRF converter | FangornUK | LRF | 274 | 06-16-2010 03:24 PM |
Quick/easy LIT to LRF converter? | OUTATIME | Sony Reader Dev Corner | 10 | 02-29-2008 10:44 AM |
Anyone else want chm to lrf converter? | buster | Sony Reader | 10 | 02-09-2008 06:07 PM |
PRS-500 Linux based HTML to LRF converter? | Thiana | Sony Reader Dev Corner | 3 | 04-08-2007 03:34 AM |