Android Question Looking for Document to PDF Scanner

cwt

Active Member
Licensed User
Longtime User
I want to integrate document scanning into my app - just scan pages to PDF and save file where I want - OCR not necessary. Then I will upload the saved file to my web server. I have the file upload done, just need a document scanner.

Anyone know of any good SDKs for this and have done this before? Or maybe an existing B4A method?

Using B4A v6.31
 

KMatle

Expert
Licensed User
Longtime User
See the lib here: https://www.b4x.com/android/forum/threads/pdfjetb4a.37843/

Uploading files to a Web-Server (PHP) you can use:

B4X:
Dim ImageBytes (0) As Byte
ImageBytes=Bit.InputStreamToBytes(File.OpenInput(FilePath, FileName))
   
Dim B64String As String
Dim su As StringUtils
B64String=su.EncodeBase64(ImageBytes)

To convert the file to a B64 string and use okHttpUtils (PostString) to upload it.
 
Upvote 0

cwt

Active Member
Licensed User
Longtime User
to be more clear on what I want to do:

1. take a picture of a document (piece of paper or page)
2. crop the picture so the result looks like a flatbed scanner page
3. turn picture into PDF page and create PDF file or add new page to existing PDF file
4. no OCR needed

Sending the resultant PDF file to a server I can handle.

In essence, do what CamScanner or Scanbot does but without the cost or complication of their SDKs.
 
Upvote 0

T.Y

New Member
Licensed User
Hi
I'd like to do the exact same thing for my app....Did you have any Luck finding a solution?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I don´t think so.
There is no library available to do this.
 
Upvote 0
Top