maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Brainstorm (https://talk.maemo.org/forumdisplay.php?f=47)
-   -   Camera to PDF (https://talk.maemo.org/showthread.php?t=52628)

anismistry 2010-05-14 00:24

Camera to PDF
 
Do we have a app to take a picture of a document via the camera and then convert into PDF

THanks

quipper8 2010-05-14 00:44

Re: Camera to PDF
 
check out the python imaging library

i think the package is python-imaging

you should easily be able to make a script to convert from jpg to pdf

Not sure if ghostscript is available but it probably use. You could use imagemagick + ghostscript too.

anismistry 2010-05-14 00:50

Re: Camera to PDF
 
Quote:

Originally Posted by quipper8 (Post 657732)
check out the python imaging library

i think the package is python-imaging

you should easily be able to make a script to convert from jpg to pdf

Not sure if ghostscript is available but it probably use. You could use imagemagick + ghostscript too.

You suggesting that should an app reg this or imagemagick + ghostscript is already an available

thanks

anismistry 2010-05-14 00:54

Re: Camera to PDF
 
Sorry for my English

You suggesting that i should make an app reg this or imagemagick + ghostscript is already an available app

thanks

quipper8 2010-05-14 01:05

Re: Camera to PDF
 
no, there is no app available, but Ijust checked imagemagick is

should be as simple as

convert <nameofpic>.jpg <pdfname>.pdf

anismistry 2010-05-14 01:19

Re: Camera to PDF
 
Quote:

Originally Posted by quipper8 (Post 657747)
no, there is no app available, but Ijust checked imagemagick is

should be as simple as

convert <nameofpic>.jpg <pdfname>.pdf

You mean that is the command i need to write in the terminal

thanks

Bruce 2010-05-14 02:11

Re: Camera to PDF
 
You will first need to install imagemagick. It is one of the extras repositories. Once it is installed the command line

convert <nameofpic>.jpg <pdfname>.pdf

Will work as specified above.

anismistry 2010-05-14 02:33

Re: Camera to PDF
 
thanks Bruce and quipper8

quipper8 2010-05-14 02:40

Re: Camera to PDF
 
Quote:

Originally Posted by anismistry (Post 657756)
You mean that is the command i need to write in the terminal

thanks

OK, all steps(I think)

go to App Manager

Click Download

click menu at top, select Search

type rootsh

click on it to install

check yes and everything else OK

after succesful install close app manager

go through menus and find and click X-terminal(looks like a black box with green writing $ in it.

type root and then hit enter

type apt-get install imagemagick(you might want to be on wifi, as there are a lot of dependencies to also download)

after install done you can type exit to go back to your regular user account

type cd MyDocs/DCIM

you are now in the directory where the pictures taken by camera are(unless you are using a memory card)

type ls -tr (that will list all the files with the most recently created one at the end so you can try converting the picture you just took but they are also named by time by default)

type convert <thefilename>.jpg <filenamefor pdf>.pdf (you don't need the brackets, that is just used here to denote substitution)


Hope that helps

PS forgot to include enabling whatever repository imagemagick is in too.

anismistry 2010-05-14 02:42

Re: Camera to PDF
 
Too Good ill try


All times are GMT. The time now is 15:13.

vBulletin® Version 3.8.8