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're using an Android, the best way to scan documents is through the Google Drive app. You can scan documents directly into Google Drive by tapping the “+” button in the lower-right corner of the home screen. When the menu slides up from the bottom, select “Scan”.
Tap Save when done, and your Android scan is complete. You'll find it in the Office Lens folder on your phone, which should appear in your Gallery app.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With