C cwt Active Member Licensed User Longtime User Nov 27, 2016 #1 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
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 Nov 27, 2016 #2 See the lib here: https://www.b4x.com/android/forum/threads/pdfjetb4a.37843/ Uploading files to a Web-Server (PHP) you can use: Code: 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
See the lib here: https://www.b4x.com/android/forum/threads/pdfjetb4a.37843/ Uploading files to a Web-Server (PHP) you can use: Code: 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.
C cwt Active Member Licensed User Longtime User Nov 27, 2016 #3 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
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.
T T.Y New Member Licensed User Dec 14, 2016 #4 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 Dec 14, 2016 #5 I don´t think so. There is no library available to do this. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Feb 27, 2019 #6 I would like to do the same. Upvote 0
J JDS Active Member Licensed User Longtime User Sep 2, 2019 #7 @ cwt. Did you find a solution? Could you share it with us? Upvote 0