how to OCR a pdf file and get the text stored within pdf?
Clash Royale CLAN TAG#URR8PPP
up vote
9
down vote
favorite
first, apologies if this has been asked before - I searched for a while through the existing posts, but could not find support.
I am interested in a solution for Fedora to OCR a multipage non-searchable pdf and to turn this pdf into a new pdf file that contains the text layer on top of the image. On Mac OSX or Windows we could use Adobe Acrobat, but on Linux, specifically on Fedora?
https://snippets.webaware.com.au/howto/pdf-ocr-linux/ seems to describe a solution - but unfortunately I am already lost when retrieving exact-image.
command-line pdf ocr
add a comment |Â
up vote
9
down vote
favorite
first, apologies if this has been asked before - I searched for a while through the existing posts, but could not find support.
I am interested in a solution for Fedora to OCR a multipage non-searchable pdf and to turn this pdf into a new pdf file that contains the text layer on top of the image. On Mac OSX or Windows we could use Adobe Acrobat, but on Linux, specifically on Fedora?
https://snippets.webaware.com.au/howto/pdf-ocr-linux/ seems to describe a solution - but unfortunately I am already lost when retrieving exact-image.
command-line pdf ocr
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04
add a comment |Â
up vote
9
down vote
favorite
up vote
9
down vote
favorite
first, apologies if this has been asked before - I searched for a while through the existing posts, but could not find support.
I am interested in a solution for Fedora to OCR a multipage non-searchable pdf and to turn this pdf into a new pdf file that contains the text layer on top of the image. On Mac OSX or Windows we could use Adobe Acrobat, but on Linux, specifically on Fedora?
https://snippets.webaware.com.au/howto/pdf-ocr-linux/ seems to describe a solution - but unfortunately I am already lost when retrieving exact-image.
command-line pdf ocr
first, apologies if this has been asked before - I searched for a while through the existing posts, but could not find support.
I am interested in a solution for Fedora to OCR a multipage non-searchable pdf and to turn this pdf into a new pdf file that contains the text layer on top of the image. On Mac OSX or Windows we could use Adobe Acrobat, but on Linux, specifically on Fedora?
https://snippets.webaware.com.au/howto/pdf-ocr-linux/ seems to describe a solution - but unfortunately I am already lost when retrieving exact-image.
command-line pdf ocr
command-line pdf ocr
edited Aug 6 at 3:34
Eduard Florinescu
2,999103751
2,999103751
asked Aug 4 '16 at 15:39
ingli
299418
299418
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04
add a comment |Â
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
4
down vote
accepted
Best and easyest way out there is to use pypdfocr
it doesn't change the pdf. pypdfocr is a python module link here.
pypdfocr your_document.pdf
At the end you will have another your_document_ocr.pdf
the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
I think the command is pretty easy that it doesn't need any GUI.
Maybe installing pypdfocr is a bit more verbose:
sudo dnf -y install tesseract
pip install pypdfocr
add a comment |Â
up vote
5
down vote
After learning that tesseract can now also produce searchable pdfs, I found the script sandwich: http://www.tobias-elze.de/pdfsandwich/
after installing dependencies (this might not be the complete list)
sudo dnf install svn ocaml unpaper tesseract
I followed the script's guide for compiling from source
Compile from sources
pdfsandwich is open source software (license: GPL). You can download the sources either as .tar.bz2 package from the download area on the project website or check them out by subversion:
svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
If OCaml is installed on your system, you can compile and install as follows:
cd pdfsandwich
./configure
make
sudo make install
and this now allows me to run
sandwich multipaged-non-searchable.pdf
resulting in a searchable pdf.
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
add a comment |Â
up vote
0
down vote
An easy tool available in Ubuntu is 'ocrfeeder' it allows the generation of PDFs with OCR text overlaid on the original documents. It makes use of Tesseract plus other OCR engines (not sure which) and provides for image rotation/'unpaper', etc, as well.
- http://live.gnome.org/OCRFeeder
- https://github.com/GNOME/ocrfeeder
New contributor
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Best and easyest way out there is to use pypdfocr
it doesn't change the pdf. pypdfocr is a python module link here.
pypdfocr your_document.pdf
At the end you will have another your_document_ocr.pdf
the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
I think the command is pretty easy that it doesn't need any GUI.
Maybe installing pypdfocr is a bit more verbose:
sudo dnf -y install tesseract
pip install pypdfocr
add a comment |Â
up vote
4
down vote
accepted
Best and easyest way out there is to use pypdfocr
it doesn't change the pdf. pypdfocr is a python module link here.
pypdfocr your_document.pdf
At the end you will have another your_document_ocr.pdf
the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
I think the command is pretty easy that it doesn't need any GUI.
Maybe installing pypdfocr is a bit more verbose:
sudo dnf -y install tesseract
pip install pypdfocr
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Best and easyest way out there is to use pypdfocr
it doesn't change the pdf. pypdfocr is a python module link here.
pypdfocr your_document.pdf
At the end you will have another your_document_ocr.pdf
the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
I think the command is pretty easy that it doesn't need any GUI.
Maybe installing pypdfocr is a bit more verbose:
sudo dnf -y install tesseract
pip install pypdfocr
Best and easyest way out there is to use pypdfocr
it doesn't change the pdf. pypdfocr is a python module link here.
pypdfocr your_document.pdf
At the end you will have another your_document_ocr.pdf
the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
I think the command is pretty easy that it doesn't need any GUI.
Maybe installing pypdfocr is a bit more verbose:
sudo dnf -y install tesseract
pip install pypdfocr
answered Feb 3 at 19:23
Eduard Florinescu
2,999103751
2,999103751
add a comment |Â
add a comment |Â
up vote
5
down vote
After learning that tesseract can now also produce searchable pdfs, I found the script sandwich: http://www.tobias-elze.de/pdfsandwich/
after installing dependencies (this might not be the complete list)
sudo dnf install svn ocaml unpaper tesseract
I followed the script's guide for compiling from source
Compile from sources
pdfsandwich is open source software (license: GPL). You can download the sources either as .tar.bz2 package from the download area on the project website or check them out by subversion:
svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
If OCaml is installed on your system, you can compile and install as follows:
cd pdfsandwich
./configure
make
sudo make install
and this now allows me to run
sandwich multipaged-non-searchable.pdf
resulting in a searchable pdf.
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
add a comment |Â
up vote
5
down vote
After learning that tesseract can now also produce searchable pdfs, I found the script sandwich: http://www.tobias-elze.de/pdfsandwich/
after installing dependencies (this might not be the complete list)
sudo dnf install svn ocaml unpaper tesseract
I followed the script's guide for compiling from source
Compile from sources
pdfsandwich is open source software (license: GPL). You can download the sources either as .tar.bz2 package from the download area on the project website or check them out by subversion:
svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
If OCaml is installed on your system, you can compile and install as follows:
cd pdfsandwich
./configure
make
sudo make install
and this now allows me to run
sandwich multipaged-non-searchable.pdf
resulting in a searchable pdf.
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
add a comment |Â
up vote
5
down vote
up vote
5
down vote
After learning that tesseract can now also produce searchable pdfs, I found the script sandwich: http://www.tobias-elze.de/pdfsandwich/
after installing dependencies (this might not be the complete list)
sudo dnf install svn ocaml unpaper tesseract
I followed the script's guide for compiling from source
Compile from sources
pdfsandwich is open source software (license: GPL). You can download the sources either as .tar.bz2 package from the download area on the project website or check them out by subversion:
svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
If OCaml is installed on your system, you can compile and install as follows:
cd pdfsandwich
./configure
make
sudo make install
and this now allows me to run
sandwich multipaged-non-searchable.pdf
resulting in a searchable pdf.
After learning that tesseract can now also produce searchable pdfs, I found the script sandwich: http://www.tobias-elze.de/pdfsandwich/
after installing dependencies (this might not be the complete list)
sudo dnf install svn ocaml unpaper tesseract
I followed the script's guide for compiling from source
Compile from sources
pdfsandwich is open source software (license: GPL). You can download the sources either as .tar.bz2 package from the download area on the project website or check them out by subversion:
svn checkout svn://svn.code.sf.net/p/pdfsandwich/code/trunk/src pdfsandwich
If OCaml is installed on your system, you can compile and install as follows:
cd pdfsandwich
./configure
make
sudo make install
and this now allows me to run
sandwich multipaged-non-searchable.pdf
resulting in a searchable pdf.
edited Mar 20 '17 at 16:07
answered Aug 4 '16 at 15:39
ingli
299418
299418
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
add a comment |Â
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
for a related, but separate question, building on this one, see unix.stackexchange.com/questions/306051/â¦
â ingli
Aug 27 '16 at 18:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
FWIW: pdfsandwich is also available in Ubuntu's apt package repository. Other distros might have it as well.
â Laurence Gonsalves
Mar 14 at 6:25
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
unix.stackexchange.com/questions/471985/⦠any suggestions
â Deepak Umredkar
Sep 28 at 6:23
add a comment |Â
up vote
0
down vote
An easy tool available in Ubuntu is 'ocrfeeder' it allows the generation of PDFs with OCR text overlaid on the original documents. It makes use of Tesseract plus other OCR engines (not sure which) and provides for image rotation/'unpaper', etc, as well.
- http://live.gnome.org/OCRFeeder
- https://github.com/GNOME/ocrfeeder
New contributor
add a comment |Â
up vote
0
down vote
An easy tool available in Ubuntu is 'ocrfeeder' it allows the generation of PDFs with OCR text overlaid on the original documents. It makes use of Tesseract plus other OCR engines (not sure which) and provides for image rotation/'unpaper', etc, as well.
- http://live.gnome.org/OCRFeeder
- https://github.com/GNOME/ocrfeeder
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
An easy tool available in Ubuntu is 'ocrfeeder' it allows the generation of PDFs with OCR text overlaid on the original documents. It makes use of Tesseract plus other OCR engines (not sure which) and provides for image rotation/'unpaper', etc, as well.
- http://live.gnome.org/OCRFeeder
- https://github.com/GNOME/ocrfeeder
New contributor
An easy tool available in Ubuntu is 'ocrfeeder' it allows the generation of PDFs with OCR text overlaid on the original documents. It makes use of Tesseract plus other OCR engines (not sure which) and provides for image rotation/'unpaper', etc, as well.
- http://live.gnome.org/OCRFeeder
- https://github.com/GNOME/ocrfeeder
New contributor
New contributor
answered 8 mins ago
jdpipe
1012
1012
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f301318%2fhow-to-ocr-a-pdf-file-and-get-the-text-stored-within-pdf%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
There is a problem with the nice pdfocr script that the page you are linking to recommends: it relies upon pdftk which is essentially deprecated (for two reasons, its dependence on libgcj and on iText5+). So a different solution is needed anyway...
â Maxim
Mar 14 '17 at 6:04