I want to convert an image taken from my camera to a PDF so that I can programmatically read the text in it. I saw some links which suggested I use itext jars. I wanted to know the best approach for my requirement. Thanks in advance guys.
For image to PDF there are may libraries available like iText, droidtext so you can use it. But for your actual requirement is
so that I can programmatically read the text in it.
to read
text from your image file instead of converting it to PDF file, I suggests you to use OCR library for it. There are many Android-OCR Libraries ( tesjeract, mezzofanti ) which are used for read text from image.
Related
I am trying to implement reading a PDF within an Android app. I want to hide particular words from it.
I have downloaded a PDF viewer library. It opens properly but am not sure whether it is possible to hide words in that document.
Is there any library available that can do this?
Please help me!
Thanks in advance.
May be you are using muPDF Library and seriously muPDF or other libraries which renders PDF uses Images for rendering data they are not in text format so the modifications you want will be pretty hard to do so.
You may use iText Library for this, itext Library can extract the text from PDF and then you show the text as you want.
Hello Fellow Developers,
I am developing a PDF annotation for Android Tablet and would like to open/display PDF file within my android application to edit. I have done research on how to open PDF file and most methods and libraries suggest to convert the PDF to a image file. I don't want to convert to image file because the image file pixelate when I increase resolution. Now the problem I am facing are.
1) Which method I must use to display the pdf file within my application to annotate
2) I also want to implement text reflow in my app
Please suggest.
Thank you.
Regards,
Marcello
If you will read pdf file specification, you will find, that pdf have no any type of flow. Actually each letter just is strictly coordinated on a page. Therefore:
It is simple to annotate any content of pdf document by the coordinates the mark on an any rendering content.
It is impossible to use pdf as a "what you see is what you get" editor. Even it is impossible to perfectly correct parse pdf to editable and back. It is the basically WRONG idea to do, because PDF is just the representation, not the design.
Funniest part of the pdf is text. Especially - unicode text. I want to say, that catching non-english text from the pdf file will return unpredictable results.
Thank you!
I am now currently doing a project on image to text convertion, i have go through various process like canny algorithm and so many, but did not get a solution.Finally i got a video in the following link here
i need exactly the same application now how can i implement this please find me a solution
I believe you want to recognize the characters from a picture, here are some related posts
Is there any free OCR library for Android?
What kind of OCR Java library should I use in Android?
Proof-of-concept word input from camera for Android
http://code.google.com/p/wordsnap-ocr/
I want to convert each slide of a ppt file into corresponding png file using Apachi POI or any other mechanism.
Any good suggestions are welcome.
I am working on the same Application. Converting into images is a tedious process where u need to make changes in the entire POI API especially in draw function.So the better option is you can change it into web or html view.
I am using iText library to create PDF documents.
I am able to create and add contents to the document programmetically like "new Paragraph("This is new pdf")".
My question are
Can I add the
contents by typing something in the
document and save it as PDF using
iText library? As like we are
creating word documents...?
Suppose if I want to insert an image in my
document, it will be done by picking
an image from my External storage
using a dialog box...?
Is it possible using iText library in
andriod...?
These are multiple questions. I'll try answering them all. However it seems one answer to all your questions is, first try, study, learn what iText is about, then ask questions
but my question is can i able to add
the contents by typing something in
the document and save it as PDF using
iText library? like we are creating
word documents...?
No, you have to do it programmatic. iText is not a WYSIWYG tool like Adobe Acrobat or other GUI-PDF Editors.
suppose if i want to insert a image in my document, it will be done by picking an image from my External storage using a dialog box...
If you create the dialog box and the code logic to add it to a PDF in the iText way it is possible.
is it possible using iText library in
android...?
The general available iText is not fit for Android. You can contact iText Sales department to know more about iText Android.