I would like to develope an application in android. The requirement is to scan a document using the camera and to convert the scanned data to a pdf file, so that it could be used as an attachment in mail.
Please provide me some sample code... Thank you.
If you are looking for simple PDF functionality you might try this Simple PDF for Android there does not seem to be much else available. If you need OCR Suggestions for Android OCR as to the rest of it you are asking multiple questions, I suggest taking it one step at a time and asking one question per problem you encounter.
Here's an API that looks promising.
"CamScanner API enables your application to automatically detect page borders and smartly remove background. Enhance your image with up to five modes to make the contents clearer and more readable. Return processed documents to your app in JPG or PDF format."
https://dev.camscanner.com/?language=en-us
For anyone looking for easy method, Try this library https://github.com/jhansireddy/AndroidScannerDemo
*Image returned here will be a Bitmap and not a pdf, You can save it with any mime type later on.
i'm working on project like this idea , Use mobile vision Api it's result is very good but it depend on image quailty and words font size check this likCheck this Link