Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PDF-Doc-Scan

> 编程语言
Open source

Android PDF document scanning app

185 stars0 likes0 views
WebsiteGitHub

About

Android PDF document scanning app

PDF-Doc-Scan

Android PDF document scanning app

Main point of this app is to scan or select existing PDF documents simply using intent or chooser. Other apps require payment to access their api/sdk or simply don't have a possible way to do it. So they rely on switching between an app ,file chooser and a scanner.

Usage Example

Create ActivityResultLauncher

kotlin
val pdfResultLauncher = registerForActivityResult(StartActivityForResult()) {
    val uri = it.data?.data
    if (it.resultCode == Activity.RESULT_OK && uri != null) {
//        context.contentResolver.openInputStream(uri)
    }
}

Or using Compose

kotlin
val pdfResultLauncher = rememberLauncherForActivityResult(contract = StartActivityForResult()){
    val uri = it.data?.data
    if (it.resultCode == Activity.RESULT_OK && uri != null) {
//        context.contentResolver.openInputStream(uri)
    }
}

If you target Android 11 (API level 30) and up add query to your AndroidManifest.xml to make it visible for your app.

xml

Query and launch directly

kotlin
val intent = Intent()
intent.component = ComponentName("com.littletrickster.scanner", "com.littletrickster.scanner.ScanActivity")
intent.action = Intent.ACTION_PICK
intent.type = "application/pdf"

val pdfInfo = context.packageManager.queryIntentActivities(intent, 0)
if (pdfInfo.firstOrNull()?.activityInfo?.enabled == true) {
    pdfResultLauncher.launch(intent)
}

Comments

Made this as a prototype while learning Compose framework in late 2021

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidjetbrains-composekotlinopencv

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言