maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] k2pdfopt - optimize pdfs for small screens (https://talk.maemo.org/showthread.php?t=86753)

frafI 2012-09-10 10:38

[Announce] k2pdfopt - optimize pdfs for small screens
 
I'd like to announce a fantastic program by willus.com: k2pdfopt.

k2pdfopt turns any pdf into an pdf adapted for a freely selectable screen size and screen dpi ratio. It is the only kind of reflow I've seen that works well on most TeXed pdfs (except from adapting the source code).

The program exists for a while now and is mainly intended for desktop usage. Nevertheless since version 1.50 it's GPLed and I could compile it for Maemo (or many ARM equipped devices in general, I tested it on Android). Willus.com now kindly hosts this ARM binary, but if you have any Maemo related questions/problems (i.e. those not reproducible with the desktop version), please ask here. This build does not include the OCR features, since these are quite cpu intensive and k2pdfopt already needs 25-30 seconds per page on Maemo without it.

You should also have a look at the official thread on mobileread.com.

frafI 2012-09-24 19:48

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Version 1.51 is now online (all links remain valid).

frafI 2012-12-09 14:32

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Version 1.62 is out since a few days and I just sent the corresponding ARM version to willus. For more information, see homepage and/or mobileread thread.

Kabouik 2012-12-10 16:13

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Is the ARM binary compatible with Meego? How to install it? I just got a k2pdfopt file without extension. Reading scholar papers onto the N9 would be quite useful to me.

Let's try. Otherwise my N900's gonna prove again how versatile it is compared to the concurrence, including its successor. :)

frafI 2012-12-10 17:14

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
It should be compatible to Meego, however I only tested it on Maemo and Android.
The file doesn't need any installation, it's a single statically linked binary. Yust run e.g.
Code:

./k2pdfopt
. If you need to convert many and/or long documents try the desktop version, but for e.g. a single article (say 6-15 pages), it's bearable to concert it on the device.

Btw: Did you try my pdf reader (flatboat) on N9?

udaychaitanya16 2012-12-10 18:04

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
@frafl

could you please tell me what should I do to convert my pdf file to fit the screen of my N900. specifically what are the commands?And how to increase the magnification?I am confused.Thanks

Edit.
I tried with "d" option and 800*480 resolution.I don't know more than that.

frafI 2012-12-10 18:26

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Quote:

Originally Posted by udaychaitanya16 (Post 1303181)
@frafl

could you please tell me what should I do to convert my pdf file to fit the screen of my N900. specifically what are the commands?And how to increase the magnification?I am confused.Thanks

Edit.
I tried with "d" option and 800*480 resolution.I don't know more than that.

Quite right. You could also use command line arguments -h 480 and -w 800 instead. Additionally you should set -odpi to 267 (o in the menu). The (kindle) default value is 167. For other devices see http://en.wikipedia.org/wiki/List_of..._pixel_density.

Edit: For N9, it should be 854*480; 251 dpi.

udaychaitanya16 2012-12-10 18:42

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
what about input /source pixels per inch.I am getting a jpeg error.While I am able to convert it in Ubuntu flawlessly.Thanks for quick response.

frafI 2012-12-10 18:50

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
-idpi for the input dpi.
Is the jpeg error visible? I'll see, if the versions used for k2pdfopt and mupdf (used internally) match.

udaychaitanya16 2012-12-10 18:59

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
I didn't check it out.As soon as I see the error message I stopped the process.What I did is this.
1.selected a pdf file
2."d" option
3.other devises i.e 4
4.width 800 height 480 output dpi is 267 according to wiki.But I am not sure of input dpi so I kept the same as 267

Now I get the jpeg error.I am very eager to try this.Help me out.

frafI 2012-12-10 19:28

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Can you tell me the exact error?

Kabouik 2012-12-10 23:51

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Quote:

Originally Posted by frafI (Post 1303170)
It should be compatible to Meego, however I only tested it on Maemo and Android.
The file doesn't need any installation, it's a single statically linked binary. Yust run e.g.
Code:

./k2pdfopt
. If you need to convert many and/or long documents try the desktop version, but for e.g. a single article (say 6-15 pages), it's bearable to concert it on the device.

Btw: Did you try my pdf reader (flatboat) on N9?

Thank you. Unfortunately I get a "Permission denied" message when I try it, either as root or not. The file is in /home/user/MyDocs/Documents.

I just discovered Flatboat. I installed it and I will try with enthusiasm! I got a few crashes while testing it quickly, but I had a lot of other applications open at the same time so perhaps it is not due to Flatboat itself. Thanks!

thedead1440 2012-12-11 04:16

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Quote:

Originally Posted by Kabouik (Post 1303276)
Thank you. Unfortunately I get a "Permission denied" message when I try it, either as root or not. The file is in /home/user/MyDocs/Documents.

Copy it to /home/user/ and chmod 775 it then run it; it works flawlessly ;)


frafl thank you for this! :)



Edit: Just saw flatboat for Harmattan and downloaded the file thinking how did i miss such an app :D While installing i realised I actually had the .deb for v0.6 in my device... For me the v0.8.2 works very nicely; thanks for it :D

pichlo 2012-12-11 10:24

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Quote:

Originally Posted by thedead1440 (Post 1303310)
Quote:

Originally Posted by Kabouik (Post 1303276)
Thank you. Unfortunately I get a "Permission denied" message when I try it, either as root or not. The file is in /home/user/MyDocs/Documents

Copy it to /home/user/ and chmod 775 it then run it; it works flawlessly ;)

That's what I wanted to say but then I tried it myself and found that it worked fine from MyDocs. It is a FAT partition and the permissions were implied, rwxrwxrwx. This in on N900 though. Is it different on N9? Asking just out of curiosity.

Quote:

frafl thank you for this! :)
Indeed!

thedead1440 2012-12-11 10:37

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
yup it doesn't seem to change the permissions on the n9 like the n900 :(

Code:

~# ls -al /home/user/MyDocs/k2pdfopt
-rw-r--r--    1 user    root      10621604 Dec 11 18:35 /home/user/MyDocs/k2pdfopt
~# chmod 775 /home/user/MyDocs/k2pdfopt
~# ls -al /home/user/MyDocs/k2pdfopt
-rw-r--r--    1 user    root      10621604 Dec 11 18:35 /home/user/MyDocs/k2pdfopt
~# /home/user/MyDocs/k2pdfopt
-sh: /home/user/MyDocs/k2pdfopt: Permission denied


Edit: Just copied the same file on the N9 ~/MyDocs/ partition to the n900's MyDocs and the permissions were retained without having to chmod them so its maybe N9+aegis at fault here
Code:

~# ls -al /home/user/MyDocs/k2pdfopt
-rwxrwxrwx    1 user    root      10621604 Dec 11 18:47 /home/user/MyDocs/k2pdfopt


pichlo 2012-12-11 10:52

Re: [Announce] k2pdfopt - optimize pdfs for small screens
 
Interesting. Quite the opposite on the N900:

Code:

N900:~# ls -l /home/user/MyDocs/tmp/
-rwxrwxrwx    1 user    root    10621604 Dec 11 01:55 k2pdfopt
N900:~# chmod 444 /home/user/MyDocs/tmp/k2pdfopt
N900:~# ls -l /home/user/MyDocs/tmp/
-rwxrwxrwx    1 user    root    10621604 Dec 11 01:55 k2pdfopt
N900:~#

Edit: Beaten to it.


All times are GMT. The time now is 08:58.

vBulletin® Version 3.8.8