Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
Improve ClearPDF repository presentation [skip ci]
Chethan616c347f1aa066e
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex 22588a4..1d995a2 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -6,26 +6,45 @@ body:- type: markdownattributes:value: |- Thanks for helping improve ClearPDF. Please remove private PDF content and personal data from logs or screenshots.+ Thanks for helping improve ClearPDF. Please remove private document content, personal data, and access tokens from screenshots or logs.- type: inputid: versionattributes:label: ClearPDF version- placeholder: "1.1.0"+ description: Find this in Settings → About, or on the release page.+ placeholder: "2.0.0 (V4)"+ validations:+ required: true+ - type: dropdown+ id: distribution+ attributes:+ label: Where did you install ClearPDF from?+ options:+ - GitHub release APK+ - Google Play+ - Built from source+ - Other / not surevalidations:required: true- type: inputid: deviceattributes:- label: Device and Android version- placeholder: "Pixel 7, Android 15"+ label: Device model+ placeholder: "Samsung Galaxy S24 Ultra"+ validations:+ required: true+ - type: input+ id: android+ attributes:+ label: Android version+ placeholder: "Android 16"validations:required: true- type: textareaid: stepsattributes:label: Steps to reproduce- placeholder: "1. Open... 2. Tap... 3. ..."+ placeholder: "1. Open … 2. Tap … 3. …"validations:required: true- type: textarea@@ -43,5 +62,5 @@ body:- type: textareaid: extraattributes:- label: Logs or screenshots- description: Remove private document content, names, paths, and tokens.+ label: Screenshots or logs+ description: Optional. Redact names, file paths, document contents, and tokens before attaching.diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 0000000..4006a99--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,5 @@+blank_issues_enabled: false+contact_links:+ - name: Report a security vulnerability privately+ url: https://github.com/Chethan616/ClearPDF/security/advisories/new+ about: Use GitHub's private vulnerability reporting form. Do not post security details publicly.diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.ymlindex 081ed50..d7757fd 100644--- a/.github/ISSUE_TEMPLATE/feature_request.yml+++ b/.github/ISSUE_TEMPLATE/feature_request.yml@@ -1,5 +1,5 @@name: Feature request-description: Suggest an improvement that fits ClearPDF's offline-first mission.+description: Describe a user problem and a change that could solve it.title: "[Feature]: "labels: [enhancement]body:@@ -7,7 +7,7 @@ body:id: problemattributes:label: Problem to solve- description: What user workflow is difficult or missing today?+ description: What task or workflow is difficult or missing?validations:required: true- type: textarea@@ -20,12 +20,29 @@ body:id: alternativesattributes:label: Alternatives considered+ description: Optional. What workarounds or other approaches have you tried?+ - type: dropdown+ id: area+ attributes:+ label: Area+ description: Optional; choose the closest match.+ multiple: true+ options:+ - PDF reading or annotations+ - PDF tools+ - Office documents or spreadsheets+ - Image editor or scanner+ - Performance or accessibility+ - Other+ - type: textarea+ id: context+ attributes:+ label: Additional context+ description: Include a mockup, example, or constraints if useful.- type: checkboxes- id: principles+ id: prior_searchattributes:- label: Project principles+ label: Before submittingoptions:- - label: This can work offline and does not require ads, accounts, or cloud processing.- required: true- - label: I have checked for existing issues or pull requests.+ - label: I checked existing issues and pull requests for a similar request.required: truediff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 898f289..b5249f2 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -1,22 +1,28 @@## What changed?-<!-- Describe the user problem and the solution. -->+<!-- Summarize the user-visible and technical changes. -->-## How was it tested?+## Why?-- [ ] `./gradlew assembleDebug`-- [ ] `./gradlew assembleRelease` (if applicable)-- [ ] Manual testing on Android API/device:+<!-- Link the related issue, if any. -->-## UI changes+Closes #-<!-- Add screenshots or a short recording when the UI changes. -->+## How was it checked?++- [ ] <code>./gradlew :app:assembleFossDebug</code>+- [ ] Relevant manual checks completed+- Device / Android version:+- Known limitations:++## Screenshots or recording++<!-- Include these for UI changes. -->## Checklist-- [ ] No ads, analytics, accounts, cloud processing, or hidden network calls added.-- [ ] Offline behavior remains usable.-- [ ] Light and dark themes were checked.-- [ ] Accessibility/content descriptions were considered.-- [ ] No secrets, private documents, build outputs, or generated IDE files are included.-- [ ] Dependency/license changes are documented.+- [ ] Selected documents remain local; any new network behavior is explicit and documented.+- [ ] Existing offline workflows remain usable where intended.+- [ ] Light and dark themes, accessibility, and performance were considered.+- [ ] Documentation and third-party notices were updated where needed.+- [ ] No secrets, private documents, APKs, keystores, or build outputs are included.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 6ddd247..5b7be9c 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,59 +1,65 @@# Contributing to ClearPDF-Thanks for helping make ClearPDF a fast, private, offline-first PDF app.+Thanks for helping improve ClearPDF. Bug reports, usability feedback, documentation fixes, and focused code changes are welcome.## Project principles-- PDF data stays on the device. Do not add cloud processing, telemetry, ads, or account requirements.-- Keep core PDF editing usable without an internet connection.-- Prefer small, focused pull requests with clear user value.-- Preserve accessibility, light/dark themes, and low-end device performance.-- Respect the licenses and notices of every dependency and asset.+- Keep selected documents and extracted content on-device; do not add a ClearPDF upload service.+- Make network features explicit, user-initiated, and documented. Keep core PDF workflows usable offline where practical.+- Prefer small changes with clear user value.+- Preserve accessibility, light and dark themes, and performance across a range of Android devices.+- Respect the licenses and notices for dependencies and assets.## Before you start-1. Search existing issues and pull requests.-2. For larger changes, open an issue describing the problem and proposed direction.-3. Do not include private documents, signing keys, `key.properties`, APKs, build outputs, or generated IDE files.+1. Search existing issues and pull requests so work is not duplicated.+2. For a larger feature, open a feature request first to agree on scope.+3. Do not include private documents, signing keys, <code>key.properties</code>, APKs, build outputs, or generated IDE files.## Local setupRequirements:- Android Studio with JDK 17 or newer.-- Android SDK 36.+- Android SDK Platform 36 and Android Build Tools 36.1.0.- An Android device or emulator for UI changes.-```bash+Clone the repository, then build the FOSS debug app:++~~~bashgit clone https://github.com/Chethan616/ClearPDF.gitcd ClearPDF-./gradlew assembleDebug-```+./gradlew :app:assembleFossDebug+~~~++On Windows, run <code>gradlew.bat :app:assembleFossDebug</code>.-For a release-like build without signing credentials:+For the sideload release variant, run <code>./gradlew :app:assembleFossRelease</code>. Release signing is local-only. Copy <code>key.properties.example</code> to <code>key.properties</code> only if you have your own signing credentials; never commit the copied file or a keystore. Without credentials, Gradle uses the debug signing key, which is for local checks only.-```bash-./gradlew assembleRelease-```+## Project layout-Release signing is intentionally local-only. Copy `key.properties.example` to `key.properties` only when you have your own signing credentials; never commit it.+- <code>app/</code> — Android UI, navigation, viewers, PDF tools, image editor, and spreadsheet editor.+- <code>pdf-core/</code> — PDF operations and rendering support.+- <code>ocr-core/</code> — on-device OCR.+- <code>backdrop/</code> — shared liquid-glass backdrop effects.+- <code>office_engine/</code> — optional Play on-demand feature, included for bundle builds.## Pull requestsPlease include:- What changed and why.+- The related issue, if one exists.+- How you checked the change, including device and Android version for UI work.- Screenshots or a short recording for UI changes.-- Device/API level used for testing.-- Manual test steps and any known limitations.-- Updated documentation, notices, or tests when relevant.+- Any known limitations or follow-up work.-Keep commits focused and use an imperative subject, for example `Improve recent-file actions`.+Keep the pull request focused. Update docs, notices, or tests when they are affected. New dependencies need a clear justification, compatible licensing, and an offline/network behavior review.## Reporting bugs-Use the bug report form and include the app version, Android version, device, reproduction steps, expected behavior, actual behavior, and logs with personal data removed.+Use the [bug report form](https://github.com/Chethan616/ClearPDF/issues/new?template=bug_report.yml). Include the app version, distribution source, device, Android version, reproduction steps, and expected and actual behavior. Remove personal data and private document content from any logs or screenshots.-## Code style+## Code style and conduct-Use official Kotlin formatting, descriptive names, and existing project patterns. Avoid unrelated formatting churn. New dependencies need a clear justification, license compatibility, and an offline behavior review.+Follow the existing Kotlin patterns and use descriptive names. Avoid unrelated formatting churn. Please follow the [Code of Conduct](CODE_OF_CONDUCT.md). For security issues, use the private reporting process in [SECURITY.md](SECURITY.md).diff --git a/PRIVACY.md b/PRIVACY.mdindex db46338..246696e 100644--- a/PRIVACY.md+++ b/PRIVACY.md@@ -1,41 +1,28 @@-# ClearPDF Privacy+# ClearPDF privacy notes-ClearPDF is designed to be an offline-first PDF utility for Android.+ClearPDF is an offline-capable Android document app. It has no account system, in-app advertising, analytics SDK, or crash-reporting service in the app code. Document operations run on the device; ClearPDF does not provide a server for uploading user files or extracted text.-## What ClearPDF does not do+## Network use-- It does not require an account.-- It does not show ads.-- It does not include analytics, telemetry, or crash-reporting services.-- It does not intentionally upload PDFs or extracted content to a server.-- ClearPDF's own code declares no `INTERNET` permission in the Google Play build (note: bundled- Google ML Kit libraries add it through their own manifests; see [`NOTICE`](NOTICE)).+Network access is limited to features that need it:-## Build flavors and the optional Office engine+- **Optional Office engine:** In the GitHub/FOSS build, you can choose to download the LibreOffice-based engine from a pinned GitHub release in Settings. ClearPDF checks the expected archive size and SHA-256 before installing it. The engine converts documents locally in an isolated app process.+- **Web address to PDF:** The FOSS build can load a web address you enter and render the page as a PDF. This sends normal requests to that website and any page resources it loads. The request goes to the address you chose, not to a ClearPDF document-processing server.+- **Google Play services components:** The scanner is provided by Google Play services. Background removal uses ML Kit subject segmentation, whose model may be delivered by Google Play services. Google manages those service/model downloads; document processing remains on-device.+- **Play distribution:** The optional Office engine is delivered through Google Play's on-demand feature delivery when requested. The app's main manifest does not declare the <code>INTERNET</code> permission; bundled libraries may contribute permissions during manifest merging. See <a href="NOTICE">NOTICE</a> and the dependency manifests for details.-ClearPDF ships in two flavors:--- **play** (Google Play): ClearPDF itself adds no `INTERNET` permission. The optional Office engine- (powered by LibreOffice) is delivered by Google Play itself as an on-demand module, only when you- tap *Download* in Settings.-- **foss** (GitHub / sideload builds): ClearPDF declares `INTERNET` for exactly one purpose — downloading that- same optional engine when you ask for it. The download goes to a fixed GitHub release URL, sends no- document or personal data, and is installed only if its size and SHA-256 checksum match values- pinned in the app. Nothing is downloaded unless you start it, and you can delete the engine at any- time in Settings.--In both flavors your documents never leave the device: conversion runs locally in an isolated app-process, and the app's WebViews (used to lay out .docx and HTML) block all network requests and opt-out of Safe Browsing lookups and WebView metrics.+Converting local HTML, rendering DOCX content, OCR, spreadsheet editing, image tools, and PDF operations use local content. The WebViews used for local HTML and DOCX rendering block external network loads; URL-to-PDF intentionally loads the address you enter.## Files and permissions-Files are opened or saved only when you choose them through Android's document picker or the app's export flow. Recent-file entries are stored locally on the device and can be removed from the home screen.+Files are opened and saved through Android's document picker or ClearPDF's export flow. Recent-file entries are stored locally and can be removed from the home screen. ClearPDF does not intentionally send selected documents or their extracted contents to a ClearPDF-controlled server.++Android permissions are requested for features that need them, such as camera access for scanning. Device and Android-version availability can affect individual features.-## On-device scanning and text selection+## Scanning and OCR-Scanning and text-selection features use the on-device Google ML Kit components listed in [`NOTICE`](NOTICE). ClearPDF does not intentionally send their input to a ClearPDF server. This dependency is disclosed so contributors can make informed decisions about builds and distribution.+Paper scanning uses Google ML Kit Document Scanner through Google Play services. Background removal uses ML Kit subject segmentation; Google Play services may provide its model. OCR for scanned or image-only PDF pages uses bundled on-device ML Kit text recognition with a Tesseract fallback. These components process content on-device and do not send document contents to a ClearPDF server.## Reporting a concern-Please do not attach private PDFs or personal information to public issues. For a suspected security or privacy vulnerability, follow [`SECURITY.md`](SECURITY.md).+Do not attach private documents, personal information, access tokens, or signing keys to public issues. For a suspected vulnerability, use the private reporting link in <a href="SECURITY.md">SECURITY.md</a>.diff --git a/SECURITY.md b/SECURITY.mdindex de9d848..3791f68 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -2,21 +2,18 @@## Supported versions-Security fixes are applied to the latest `main` branch and the newest published release.+Security fixes are made on the latest <code>main</code> branch and the newest published release.-## Reporting a vulnerability+## Report a vulnerability privately-Please do not open a public issue for a security vulnerability. Contact the maintainers privately through the GitHub security advisory flow for this repository.+Please do not open a public issue or pull request with vulnerability details. Use GitHub's [private vulnerability reporting form](https://github.com/Chethan616/ClearPDF/security/advisories/new).-Include:+Include a short description, affected version or commit, impact, and reproduction steps or a minimal proof of concept. Do not include private documents, personal information, access tokens, or signing keys.-- A short description and impact.-- Affected version or commit.-- Reproduction steps or a minimal proof of concept.-- Any suggested mitigation.+Reports are reviewed by the maintainers. Please allow reasonable time for verification and a fix before public disclosure.-Please allow reasonable time for verification and a fix before public disclosure. Do not include personal documents, access tokens, private keys, or other sensitive data in a report.+For non-security bugs, use the public [bug report form](https://github.com/Chethan616/ClearPDF/issues/new?template=bug_report.yml).-## Privacy expectations+## Privacy-ClearPDF is designed to process PDFs locally. The app does not include ads, accounts, analytics, or cloud PDF processing. Scanner and text-selection features use the disclosed on-device ML Kit components; contributors must not add hidden data collection or network upload behavior.+ClearPDF processes selected documents locally and does not provide a document-upload service. The FOSS build can make requests for the optional Office engine download and when converting a web address you enter to PDF. See [PRIVACY.md](PRIVACY.md) for details.diff --git a/app/build.gradle.kts b/app/build.gradle.ktsindex 650d591..7f66813 100644--- a/app/build.gradle.kts+++ b/app/build.gradle.kts@@ -85,9 +85,8 @@ android {// Two distributions of the same app (identical applicationId):// - play: Google Play. The optional Office engine ships as the on-demand dynamic feature// module :office_engine (Play Feature Delivery); no native code is ever downloaded by the app.- // - foss: GitHub/F-Droid-style sideload builds. The Office engine is downloaded on request- // from a pinned, SHA-256 verified release; only this flavor declares INTERNET- // (see src/foss/AndroidManifest.xml).+ // - foss: GitHub/F-Droid-style sideload builds. INTERNET is used for the optional Office+ // engine download and the user-entered URL-to-PDF flow; see src/foss/AndroidManifest.xml.flavorDimensions += "distribution"productFlavors {create("play") {diff --git a/app/src/foss/AndroidManifest.xml b/app/src/foss/AndroidManifest.xmlindex 8311763..95fca0c 100644--- a/app/src/foss/AndroidManifest.xml+++ b/app/src/foss/AndroidManifest.xml@@ -1,9 +1,10 @@<?xml version="1.0" encoding="utf-8"?><!--- foss flavor only. The single network use in the whole app: downloading the optional Office- engine (powered by LibreOffice) when the user asks for it in Settings. The archive is pinned by- size + SHA-256 (OfficeEngineManifest). Documents never leave the device; every WebView still- blocks network loads (DocxWebRenderer, HtmlToPdfConverter).+ FOSS flavor only. Network access is used for two user-initiated features: downloading the+ optional Office engine (powered by LibreOffice) from a pinned archive, and converting a web+ address entered by the user to PDF. The engine archive is verified by size + SHA-256+ (OfficeEngineManifest). Local-document WebViews block external loads; URL-to-PDF intentionally+ requests the entered address and its page resources.--><manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools">diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlindex 4f5ea65..df798ee 100644--- a/app/src/main/AndroidManifest.xml+++ b/app/src/main/AndroidManifest.xml@@ -4,10 +4,10 @@<!-- Camera permission for document scanning --><uses-permission android:name="android.permission.CAMERA" />- <!-- ClearPDF declares no network permissions here (note: merged ML Kit/datatransport library- manifests still contribute INTERNET). The play flavor itself is offline (the optional Office engine- arrives through Play Feature Delivery). Only the foss flavor adds INTERNET, solely to- download that engine on request - see src/foss/AndroidManifest.xml.+ <!-- The main manifest does not declare INTERNET. Bundled libraries may contribute it when+ manifests are merged. The Play build gets the optional Office engine through Play Feature+ Delivery. The FOSS flavor declares INTERNET for the on-request engine download and the+ user-entered URL-to-PDF flow - see src/foss/AndroidManifest.xml.<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> --><!-- Legacy read access for older providers on Android 12L and below. -->@@ -174,8 +174,8 @@android:exported="false"android:process=":office" />- <!-- WebViews only ever render local content; opt out of Safe Browsing lookups and- WebView usage metrics so nothing is sent even in builds that hold INTERNET. -->+ <!-- Local-content WebViews block external loads. URL-to-PDF intentionally loads the+ address entered by the user. Disable Safe Browsing lookups and WebView metrics. --><meta-dataandroid:name="android.webkit.WebView.EnableSafeBrowsing"android:value="false" />diff --git a/readme.md b/readme.mdindex 878628d..f51c9f8 100644--- a/readme.md+++ b/readme.md@@ -1,183 +1,205 @@<div align="center">-<img src="screenshots/banner_gh.png" alt="ClearPDF — free offline PDF editor, Office viewer and image editor for Android" width="100%">-# ClearPDF-### The free, offline PDF & Office suite for Android — in liquid glass.+### Open-source PDF and document tools for Android.-Read, edit, sign and convert **PDF, Word, Excel, PowerPoint and images** entirely on your phone.<br>-No ads · No subscription · No file-size limits · No uploads · Open source.+Read and annotate PDFs, sign forms, work with Office documents, edit spreadsheets and images, and create PDFs on your phone. Built with Kotlin and Jetpack Compose.-<a href="https://github.com/Chethan616/ClearPDF/releases/latest"><img src="https://img.shields.io/badge/Download-Latest_APK-0A84FF?style=for-the-badge&logo=android&logoColor=white" alt="Download the latest ClearPDF APK"></a>-<a href="https://github.com/Chethan616/ClearPDF/releases"><img src="https://img.shields.io/github/downloads/Chethan616/ClearPDF/total?style=for-the-badge&color=30D158&logo=github" alt="Total downloads"></a>-<a href="https://github.com/Chethan616/ClearPDF/releases/latest"><img src="https://img.shields.io/github/v/release/Chethan616/ClearPDF?style=for-the-badge&color=BF5AF2&label=version" alt="Latest version"></a>-<a href="https://github.com/Chethan616/ClearPDF/stargazers"><img src="https://img.shields.io/github/stars/Chethan616/ClearPDF?style=for-the-badge&color=FF9F0A" alt="GitHub stars"></a>+<p>+ <a href="https://github.com/Chethan616/ClearPDF/releases/tag/v4"><strong>Download ClearPDF V4</strong></a>+ · <a href="https://github.com/Chethan616/ClearPDF/releases">All releases</a>+ · <a href="https://github.com/Chethan616/ClearPDF/issues/new/choose">Report a problem or request a feature</a>+ · <a href="CONTRIBUTING.md">Contribute</a>+</p>-<img src="https://img.shields.io/badge/Android-6.0%2B-3DDC84?style=flat-square&logo=android&logoColor=white" alt="Android 6.0+">-<img src="https://img.shields.io/badge/Kotlin-Jetpack_Compose-7F52FF?style=flat-square&logo=kotlin&logoColor=white" alt="Kotlin + Jetpack Compose">-<img src="https://img.shields.io/github/license/Chethan616/ClearPDF?style=flat-square&color=64D2FF" alt="MIT license">-<img src="https://img.shields.io/badge/100%25-offline-5E5CE6?style=flat-square" alt="100% offline">+<p>+ <a href="https://github.com/Chethan616/ClearPDF/stargazers"><img src="https://img.shields.io/github/stars/Chethan616/ClearPDF?style=flat-square&color=FF9F0A" alt="GitHub stars"></a>+ <a href="https://github.com/Chethan616/ClearPDF/releases/latest"><img src="https://img.shields.io/github/v/release/Chethan616/ClearPDF?style=flat-square&color=0A84FF&label=latest%20release" alt="Latest release"></a>+ <a href="LICENSE"><img src="https://img.shields.io/github/license/Chethan616/ClearPDF?style=flat-square&color=30D158" alt="MIT license"></a>+ <img src="https://img.shields.io/badge/Android-6.0%2B-3DDC84?style=flat-square&logo=android&logoColor=white" alt="Android 6.0 or newer">+ <a href="https://github.com/Chethan616/ClearPDF/actions/workflows/android.yml"><img src="https://img.shields.io/github/actions/workflow/status/Chethan616/ClearPDF/android.yml?branch=main&style=flat-square&label=Android%20build" alt="Android build status"></a>+</p></div>----+ClearPDF is an Android document toolkit for reading and annotating PDFs, managing PDF pages, scanning paper documents, and opening common Office and image files. The source is licensed under MIT. Most file operations run on-device. The FOSS build uses network for its optional Office engine and URL-to-PDF features; Google Play services may provide scanner and background-removal components. See the [privacy notes](PRIVACY.md).-## Why ClearPDF?+## Featured by HowToMen-Most "free" PDF apps and websites upload your files, cap file sizes, watermark output or lock basic tools behind a subscription. ClearPDF does all of it **on-device**, for free, forever.+ClearPDF was featured by HowToMen. [Watch the video from 0:18](https://www.youtube.com/watch?v=TYNzg59ke30&t=18s).-| | ClearPDF | Typical freemium PDF apps / sites |-|---|:---:|:---:|-| Works fully offline, files never uploaded | ✅ | ❌ |-| No ads, no account, no subscription | ✅ | ❌ |-| No file-size or page limits, no watermarks | ✅ | ❌ |-| PDF **and** Word / Excel / PowerPoint | ✅ | ⚠️ often paid |-| Real spreadsheet & image editors | ✅ | ❌ |-| Open source (MIT) | ✅ | ❌ |+## Screenshots----+<p align="center">+ <img src="screenshots/light%20home%20screen.jpg" width="24%" alt="ClearPDF home screen in light mode">+ <img src="screenshots/light%20pdf%20tools.jpg" width="24%" alt="ClearPDF PDF tools in light mode">+ <img src="screenshots/light%20settings%20screen.jpg" width="24%" alt="ClearPDF settings in light mode">+ <img src="demo/3.jpg" width="24%" alt="ClearPDF PDF editing tools">+</p>+<p align="center">+ <img src="screenshots/dark%20home%20screen.jpg" width="24%" alt="ClearPDF home screen in dark mode">+ <img src="screenshots/dark%20pdf%20tools.jpg" width="24%" alt="ClearPDF PDF tools in dark mode">+ <img src="screenshots/dark%20settings%20screen.jpg" width="24%" alt="ClearPDF settings in dark mode">+ <img src="demo/4.jpg" width="24%" alt="ClearPDF annotation tools">+</p>-## ✨ Features+Short walkthroughs: [onboarding](demo/1.mp4) · [PDF viewer](demo/2.mp4).-### 📖 PDF viewer & editor-- Smooth continuous scrolling, pinch-zoom and a fast page scrubber-- **Native-feeling text selection** — long-press any word, drag handles with a magnifier across lines and pages; copy, share, search or translate-- Annotate: highlight, underline, strikethrough, pen, shapes, arrows, text boxes and sticky notes-- Sign documents, fill forms, add page numbers and watermarks, flatten-- Search inside documents, OCR for scanned pages (on-device)+## What you can do-### 🧰 PDF tools-Merge · Split · Extract pages · Organize (reorder, rotate, delete) · Compress · Encrypt / decrypt · Images → PDF · PDF → images · HTML → PDF · Extract text · Create PDF — all **lossless** where possible.+### Read and work with PDFs-### 📊 Spreadsheet editor (xlsx)-- Faithful Excel rendering: fills, fonts, borders, merged cells, frozen panes, column widths, theme colours-- Edit cells with a formula bar, format with a colour picker, use dropdown (data-validation) cells-- Insert / delete rows and columns, undo / redo, save back to **.xlsx** without breaking the rest of the file+- Read with continuous scrolling, pinch-to-zoom, page navigation, and in-document search.+- Select and copy text; run on-device OCR for image-only pages.+- Add highlights, underlines, strikethroughs, ink, shapes, arrows, text notes, and signatures.+- Fill PDF forms, flatten form fields, and export an annotated copy.+- Organize, rotate, delete, or extract pages; merge and split files.+- Compress, encrypt, or decrypt PDFs; add page numbers or watermarks; export pages as images; extract text; create PDFs from text or images.-### 🖼️ Image editor-Crop, straighten, perspective, shape masks · 13 adjustments · 22 filters · brushes, shapes, arrows, blur & pixelate · text · **background removal** · watermark · resize & format · EXIF viewer / stripper. Non-destructive with full undo / redo.+### Open Office and text documents-### 📄 Word, PowerPoint & more-Open **docx, doc, odt, rtf, pptx, ppt, xlsx, xls** and more. Optionally download the **Office engine (powered by LibreOffice)** in Settings for pixel-faithful Office rendering — it runs in its own sandboxed process and never leaves your device.+Open PDF, DOC/DOCX, XLS/XLSX, PPT/PPTX, ODT/ODS/ODP, RTF, CSV, and TXT files. Rendering depends on the format and renderer. The optional LibreOffice-based engine can improve rendering for supported Office formats.-### 📷 Document scanner-Edge-detecting scanner that turns paper into clean, searchable PDFs.+The spreadsheet editor can edit and save XLSX workbooks. Word and PowerPoint files are opened for viewing; ClearPDF does not rewrite their original text layout. You can annotate the rendered document and export it as a PDF.-### 💎 Liquid glass design-A custom liquid-glass design system for Android — real refraction, blur and light, adaptive light & dark themes, and fluid spring animations throughout.+### Edit images and scan paper-### 🔒 Private by design-No ads, no analytics, no accounts. Your documents are processed on your phone. See [PRIVACY.md](PRIVACY.md).+- Crop, rotate, straighten, and perspective-correct images.+- Adjust colour and tone, apply filters, draw, add text or watermarks, and resize.+- Remove image backgrounds on supported devices; Google Play services may provide the segmentation model.+- Scan multi-page documents, adjust the results, and save them as PDF. Scanning is provided by Google Play services and depends on its availability on the device.----+### Create PDFs from local content or a web address-## 📱 Screenshots+Create a PDF from images, text, or local HTML. The FOSS build can also convert a web address; this requests that site and its page resources. Local HTML conversion works without loading a website.-<div align="center">- <img src="screenshots/light%20home%20screen.jpg" width="24%" alt="ClearPDF home screen (light)">- <img src="screenshots/light%20pdf%20tools.jpg" width="24%" alt="ClearPDF PDF tools (light)">- <img src="screenshots/light%20settings%20screen.jpg" width="24%" alt="ClearPDF settings (light)">- <img src="demo/3.jpg" width="24%" alt="ClearPDF PDF editing tools">-</div>-<div align="center">- <img src="screenshots/dark%20home%20screen.jpg" width="24%" alt="ClearPDF home screen (dark)">- <img src="screenshots/dark%20pdf%20tools.jpg" width="24%" alt="ClearPDF PDF tools (dark)">- <img src="screenshots/dark%20settings%20screen.jpg" width="24%" alt="ClearPDF settings (dark)">- <img src="demo/4.jpg" width="24%" alt="ClearPDF annotation tools">-</div>+## Supported Android versions and formats-🎬 Video walkthroughs: [onboarding](demo/1.mp4) · [PDF viewer](demo/2.mp4)+- **Android:** API 23 (Android 6.0) or newer.+- **Document formats:** PDF; DOC/DOCX; XLS/XLSX; PPT/PPTX; ODT/ODS/ODP; RTF; CSV; TXT.+- **Images:** PNG, JPEG, WebP, BMP, and HEIC are supported by the image/document flows. Feature availability can vary by device and Android version.----+Only XLSX files have spreadsheet cell editing and save support. Other Office formats are viewed through the built-in or optional Office renderer; visual fidelity varies by document and renderer.-## ⬇️ Download+ClearPDF annotates PDFs and edits form fields, signatures, and pages, but it does not rewrite arbitrary text already printed into a PDF page. Likewise, Word and PowerPoint files are viewed and exported as PDF rather than edited in their original formats.-Grab the APK from the **[latest release](https://github.com/Chethan616/ClearPDF/releases/latest)**:+## Download-| APK | For |+The current stable release is **V4 (app version 2.0.0)**. Open the [V4 release page](https://github.com/Chethan616/ClearPDF/releases/tag/v4) and choose the APK that matches your device:++| APK suffix | Choose it for ||---|---|-| `ClearPDF-vX-arm64-v8a.apk` | Almost every modern phone (recommended) |-| `ClearPDF-vX-armeabi-v7a.apk` | Older 32-bit phones |-| `ClearPDF-vX-universal.apk` | Not sure? This one works everywhere (larger) |+| <code>-arm64-v8a.apk</code> | Most current 64-bit ARM phones and tablets |+| <code>-armeabi-v7a.apk</code> | 32-bit ARM devices |+| <code>-x86_64.apk</code> or <code>-x86.apk</code> | x86-based emulators and devices |+| <code>-universal.apk</code> | A larger package containing the release's supported ABIs |-Get automatic updates with **[Obtainium](https://github.com/ImranR98/Obtainium)** — add `https://github.com/Chethan616/ClearPDF`.+The GitHub APKs are the FOSS distribution. The optional Office engine is downloaded only when requested in Settings. For future builds, use the [latest release page](https://github.com/Chethan616/ClearPDF/releases/latest). You can also add the repository to [Obtainium](https://github.com/ImranR98/Obtainium) for release update notifications.----+## Privacy and network use-## ❓ FAQ+ClearPDF has no document-upload service. User-selected files are processed on-device. The FOSS build makes network requests for the optional Office engine download and web-address conversion. Google Play services may manage scanner or background-removal components. See [PRIVACY.md](PRIVACY.md) for details.-<details>-<summary><b>Is ClearPDF really free? What's the catch?</b></summary>+## Technology-It's free and open source under the MIT license. There are no ads, no in-app purchases and no data collection.-</details>+- Kotlin, Android SDK, and Jetpack Compose.+- Android PdfRenderer and PdfBox-Android for PDF rendering and operations.+- Bundled on-device ML Kit text recognition and Tesseract OCR fallback.+- ML Kit Document Scanner for capture and page correction.+- GPUImage and local image-processing code for image tools.+- Optional LibreOffice-based Office engine; FOSS builds download it on request, while Play builds use on-demand feature delivery.+- The local <code>backdrop</code> module and AndroidLiquidGlass components provide the glass surfaces and motion.-<details>-<summary><b>Does it upload my documents?</b></summary>+## Build and run from source-No. Every PDF, Office and image operation runs on your device. The only optional network use is downloading the Office engine when you ask for it (sideload builds), verified by SHA-256.-</details>+### Requirements-<details>-<summary><b>Can it edit Excel / Word / PowerPoint files?</b></summary>+- Android Studio with JDK 17 or newer.+- Android SDK Platform 36 and Android Build Tools 36.1.0.+- An Android device or emulator for running the app.-Spreadsheets (.xlsx) can be edited and saved. Word and PowerPoint files open in the viewer and can be annotated, exported and shared as PDF. A PowerPoint editor is on the roadmap.-</details>+### Build a FOSS debug APK-<details>-<summary><b>Is it an alternative to Adobe Acrobat, iLovePDF or Smallpdf?</b></summary>+~~~bash+git clone https://github.com/Chethan616/ClearPDF.git+cd ClearPDF+./gradlew :app:assembleFossDebug+~~~-For everyday tasks — reading, annotating, signing, merging, splitting, compressing, converting — yes, and without uploads, limits or subscriptions.-</details>+On Windows, run <code>gradlew.bat :app:assembleFossDebug</code>. The APK is written under <code>app/build/outputs/apk/foss/debug/</code>.----+### Build the sideload release APKs-## 🛠️ Build from source+~~~bash+./gradlew :app:assembleFossRelease+~~~-Requires JDK 17+ and Android SDK 36.+The ABI-split and universal APKs are written under <code>app/build/outputs/apk/foss/release/</code>. Release builds use local signing credentials when configured; otherwise the Gradle build uses the debug signing key and prints a warning. Do not distribute a debug-signed build as an official release.-```bash-git clone https://github.com/Chethan616/ClearPDF.git-cd ClearPDF-./gradlew assembleFossRelease # sideload APKs (per-ABI + universal)-./gradlew bundlePlayRelease # Google Play bundle-```+For a Play bundle, use <code>./gradlew :app:bundlePlayRelease</code>. The Play build includes the optional Office engine as an on-demand feature. See the Gradle files for distribution-specific details.++### Project layout++| Path | Purpose |+|---|---|+| <code>app/</code> | Android app, UI, document viewers, tools, and image editor |+| <code>pdf-core/</code> | PDF operations and rendering support |+| <code>ocr-core/</code> | On-device OCR |+| <code>backdrop/</code> | Shared liquid-glass backdrop effects |+| <code>office_engine/</code> | Optional Play feature module, included for bundle builds |++To run the app from Android Studio, open the repository root, sync Gradle, and run the <code>app</code> module.++## Contributing and support-Two product flavors share one `applicationId`:+Issues and focused pull requests are welcome.-- **`foss`** — GitHub / sideload builds. The optional Office engine downloads in-app on request, pinned and SHA-256 verified.-- **`play`** — Google Play. The Office engine ships as the on-demand dynamic feature `:office_engine`; its binaries are fetched and verified only by `bundlePlay*` tasks.+- [Report a bug](https://github.com/Chethan616/ClearPDF/issues/new?template=bug_report.yml).+- [Request a feature](https://github.com/Chethan616/ClearPDF/issues/new?template=feature_request.yml).+- Read the [contribution guide](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md).+- Report a security concern through [SECURITY.md](SECURITY.md).+- Review known requests and reports in [all issues](https://github.com/Chethan616/ClearPDF/issues).-Debug: `assembleFossDebug`, `installFossDebug`, `assemblePlayDebug`. Release builds fall back to debug signing unless local signing credentials are configured — never commit `key.properties` or keystores.+If ClearPDF is useful to you, starring the repository helps others discover it. Share the release page with someone who might need an open-source Android PDF toolkit.-**Stack:** Kotlin · Jetpack Compose · PdfBox-Android · Android PdfRenderer · ML Kit · LibreOfficeKit (optional) · GPUImage · custom liquid-glass backdrop engine.+## FAQ----+<details>+<summary><strong>Is ClearPDF open source?</strong></summary>-## 🤝 Contributing+Yes. The project is licensed under MIT; third-party components retain their own licenses and notices.+</details>-Bug reports, ideas and pull requests are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md) and use the issue templates.+<details>+<summary><strong>Can I use ClearPDF offline?</strong></summary>-If ClearPDF saves you from a subscription, **⭐ star the repo** and share it — it genuinely helps others find it.+Most PDF, spreadsheet, image, and local-document operations run on-device. The FOSS build needs a connection to download the optional Office engine or convert a web address. Google Play services may also provide scanner or background-removal components. See <a href="PRIVACY.md">PRIVACY.md</a>.+</details>-[](https://github.com/sponsors/Chethan616)+<details>+<summary><strong>Can I edit Word, PowerPoint, or existing PDF text?</strong></summary>----+ClearPDF can annotate PDFs, fill forms, add signatures, and manage pages, but it does not rewrite arbitrary existing PDF page text. Word and PowerPoint files are viewed and exported as PDF; XLSX cells can be edited and saved.+</details>++<details>+<summary><strong>What Android version do I need?</strong></summary>-## 🙌 Credits+Android 6.0 (API 23) or newer. Features provided by Google Play services may not be available on every device.+</details>-- [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) by Kyant0 — backdrop / liquid-glass effects (Apache-2.0)-- [AndroidLiquidGlassView](https://github.com/QmDeve/AndroidLiquidGlassView) by QmDeve — motion techniques (MIT)-- [PdfBox-Android](https://github.com/TomRoush/PdfBox-Android) by Tom Roush — lossless PDF operations (Apache-2.0)-- [ImageToolbox](https://github.com/T8RIN/ImageToolbox) by T8RIN — image-editor cropper and draw engine (Apache-2.0)-- [GPUImage for Android](https://github.com/cats-oss/android-gpuimage) — image filters (Apache-2.0)-- [LibreOffice](https://www.libreoffice.org/) — optional Office engine (MPL-2.0), downloaded on request, not bundled+## Credits-Full notices: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).+- [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) by Kyant0 for backdrop and glass effects (Apache-2.0).+- [AndroidLiquidGlassView](https://github.com/QmDeve/AndroidLiquidGlassView) by QmDeve for motion techniques (MIT; see the project notices for the local implementation details).+- [PdfBox-Android](https://github.com/TomRoush/PdfBox-Android) by Tom Roush for PDF operations (Apache-2.0).+- [ImageToolbox](https://github.com/T8RIN/ImageToolbox) by T8RIN for adapted image-editor components (Apache-2.0).+- [GPUImage for Android](https://github.com/cats-oss/android-gpuimage) for image filters (Apache-2.0).+- [LibreOffice](https://www.libreoffice.org/) provides the optional Office engine (MPL-2.0); it is not bundled in the GitHub APKs.-## 📄 License+See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for full attribution and license details. You can also [sponsor the project on GitHub](https://github.com/sponsors/Chethan616).-[MIT](LICENSE) © 2026 Chethan616+## License-<sub>Keywords: offline PDF editor Android, free PDF reader, PDF annotator, PDF signer, merge PDF, split PDF, compress PDF, docx viewer, xlsx editor, spreadsheet editor, pptx viewer, image editor, background remover, document scanner, open source Adobe Acrobat alternative, iLovePDF alternative, Smallpdf alternative, liquid glass UI, Jetpack Compose.</sub>+ClearPDF is licensed under the [MIT License](LICENSE). Third-party licenses and attributions are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).