Re: how to scan a book

2011-01-05 Thread Sven Hoexter
On Tue, Jan 04, 2011 at 06:20:24PM -0500, Long Wind wrote:
> I have a digital camera
> I want to scan a book
> how to convert image files to pdf
> or other formats?
> which software should I use?

I've recently been told that there is a software called 'unpaper' to help
in such cases with the processing.

Sven
-- 
And I don't know much, but I do know this:
With a golden heart comes a rebel fist.
 [ Streetlight Manifesto - Here's To Life ]


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110105085256.ga5...@marvin



Re: (solved)Re: how to scan a book

2011-01-04 Thread John A. Sullivan III
On Tue, 2011-01-04 at 16:59 -0700, Bob Proulx wrote:
> Long Wind wrote:
> > Paul Cartwright wrote:
> > > if you take JPG pictures, you can open up OpenOffice Writer, import the
> > > JPEGs into a DOC & SAVE-AS PDF..
> > 
> > Thank Paul Cartwright !
> > I'll try Writer later on.
> 
> That is a good suggestion.  But it sounds tedious to me.
> 
> ImageMagick can convert images to pdf files on the command line.
> 
>   $ convert file1.jpg file1.pdf
> 
> And pdftk can concatenate them.
> 
>   $ pdftk file*.pdf cat output combined.pdf
> 
> You can install them with:
> 
>   $ sudo apt-get install imagemagick pdftk
> 
> Bob
Seems like a week for PDF tricks! Just as we found the tip about
reducing PDF file size helpful and converted it to a KDE Konqueror
servicemenu, so we did for this suggestion to produce a PDF bind service
menu.  In case it may be of use to anyone, here is the script:

#!/bin/bash
TITLE="PDF Binder"
FILES=""
DIR="${1}"
NEWFILE=""
OFILE=""
OK=true
kdialog --title "${TITLE}" --yesno "You must select your files one at a
time.\nThat is the only way I will know in which order to bind
them.\nWhen you have finished selecting files, click cancel.\nI will
then ask you where to save the bound file.\nShall I continue?"
if [ $? -ne 0 ];then
exit 4
fi
while true
do
NEWFILE="$(kdialog --title "Select PDF File to Bind" --getopenfilename
"${DIR}")"
if [ $? -ne 0 ];then
break
fi
if [ ! -f "${NEWFILE}" ];then
kdialog --title "${TITLE}" --error "The \"${NEWFILE}\" file 
does not
exist"
continue
fi
FILES="${FILES} \"${NEWFILE}\""
DIR="${NEWFILE%/*}"
done
if [ -z "${FILES}" ];then
kdialog --title "${TITLE}" --msgbox "No files were selected"
exit 5
fi
while ${OK}
do
OFILE="$(kdialog --title "Enter Bound File Name" --getsavefilename
"${DIR}")"
if [ $? -eq 0 ];then
EXT="${OFILE: -4:4}"
if [ "${EXT}" != ".pdf" -a "${EXT}" != ".PDF" ];then
OFILE="${OFILE}.pdf"
fi
if [ -f "${OFILE}" ];then
kdialog --title "${TITLE}" --warningyesno "The file
${OFILE} already exists.\nShall I overwrite it?"
if [ $? -ne 0 ];then
continue
fi
fi
OK=false
else
kdialog --title "${TITLE}" --yesno "Do you really want to 
cancel the
bind?"
if [ $? -eq 0 ];then
exit 6
fi
fi
done
FNAME="${OFILE##*/}"
DNAME="${OFILE%/*}"
kdialog --title "${TITLE}" --msgbox "PDF binding can take several
minutes.\nYou will be notified via popup when the process is
complete.\nThank you." &
eval pdftk ${FILES} cat output \"${HOME}/tmp/${FNAME}\"
ret=$?
if [ $ret -eq 0 ];then
mv "${HOME}/tmp/${FNAME}" "${OFILE}"
ret=$?
fi
if [ $ret -ne 0 ];then
rm -f "${HOME}/tmp/${FNAME}"
kdialog --title "${TITLE}" --error "PDF binding of ${OFILE}
failed."
exit 5
fi
kdialog --title "${TITLE}" --msgbox "PDF Binding Completed for:\n
${OFILE}"


And here is the service menu definition in
/share/apps/konqueror/servicemenus/39748-bindpdf.desktop:

[Desktop Action Bind_PDF]
Exec=/data/.Common/apps/PDFHandlers/bindpdf "%F"
Icon=kpdf
Name=Bind PDF file(s)

[Desktop Entry]
Actions=Bind_PDF
Encoding=UTF-8
ServiceTypes=application/pdf,application/vnd.adobe.pdf



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1294206800.20531.6.ca...@denise.theartistscloset.com



Re: how to scan a book

2011-01-04 Thread godo

On 01/05/2011 12:20 AM, Long Wind wrote:

I have a digital camera
I want to scan a book
how to convert image files to pdf
or other formats?
which software should I use?
Thanks!



Hi,
you can convert images to pdf with 'convert':
$ convert your-image.jpg your-pdf.pdf

--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d23c978.2080...@dobosevic.com



Re: (solved)Re: how to scan a book

2011-01-04 Thread Paul Cartwright
On 01/04/2011 06:59 PM, Bob Proulx wrote:
>   $ convert file1.jpg file1.pdf

nice, I just tried that on a jpg & it worked great.
> 
> And pdftk can concatenate them.
> 
>   $ pdftk file*.pdf cat output combined.pdf
> 
> You can install them with:
> 
>   $ sudo apt-get install imagemagick pdftk

I don't have pdftk installed, I think I'll stick with openoffice &
convert. Might be helpful to the OP though!


-- 
Paul Cartwright
Registered Linux user # 367800


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d23ca5e.2070...@pcartwright.com



Re: (solved)Re: how to scan a book

2011-01-04 Thread Simon Hollenbach
> That is a good suggestion.   But it sounds tedious to me.
> 
Im afraid you missed the point. The OP wants to make the images become text. If 
I did, excuse and correct me pls. Though I dare to say the described method 
will most likely be not put into practice. Without a trained monkey noone would 
make me go through this for a book. Well, the images are gonna be created using 
a digicam, so who knows...

bye
Simon

Re: (solved)Re: how to scan a book

2011-01-04 Thread Bob Proulx
Long Wind wrote:
> Paul Cartwright wrote:
> > if you take JPG pictures, you can open up OpenOffice Writer, import the
> > JPEGs into a DOC & SAVE-AS PDF..
> 
> Thank Paul Cartwright !
> I'll try Writer later on.

That is a good suggestion.  But it sounds tedious to me.

ImageMagick can convert images to pdf files on the command line.

  $ convert file1.jpg file1.pdf

And pdftk can concatenate them.

  $ pdftk file*.pdf cat output combined.pdf

You can install them with:

  $ sudo apt-get install imagemagick pdftk

Bob


signature.asc
Description: Digital signature


(solved)Re: how to scan a book

2011-01-04 Thread Long Wind
On Tue, Jan 4, 2011 at 6:30 PM, Paul Cartwright

> if you take JPG pictures, you can open up OpenOffice Writer, import the
> JPEGs into a DOC & SAVE-AS PDF..
>
> --

Thank Paul Cartwright !
I'll try Writer later on.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktinerkga_1pxvf4+gqsiwrb6m+xx=c5wjvbcb...@mail.gmail.com



how to scan a book

2011-01-04 Thread Long Wind
I have a digital camera
I want to scan a book
how to convert image files to pdf
or other formats?
which software should I use?
Thanks!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlkti=cbe_2hudvmvm9cpxtadctvp6gz3v2wh8ua...@mail.gmail.com