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
README: full Artefact readme matching ClearPDF structure
chethan6161e6a04a6dbc3
diff --git a/README.md b/README.mdindex c0eaf30..32c5d84 100644--- a/README.md+++ b/README.md@@ -28,11 +28,12 @@ Read, sign and edit PDFs, open and edit Word, Excel and PowerPoint files, and ke<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/network/members"><img src="https://img.shields.io/github/forks/Chethan616/ClearPDF?style=flat-square&color=64D2FF" alt="GitHub forks"></a>- <a href="https://github.com/Chethan616/ClearPDF/releases"><img src="https://img.shields.io/github/downloads/Chethan616/ClearPDF/total?style=flat-square&color=BF5AF2&label=installs" alt="Total installs from GitHub releases"></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="https://github.com/Chethan616/ClearPDF/releases"><img src="https://img.shields.io/github/downloads/Chethan616/ClearPDF/total?style=flat-square&color=BF5AF2&label=installs" alt="Total installs from GitHub releases"></a><a href="LICENSE-MIT"><img src="https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-30D158?style=flat-square" alt="MIT or Apache-2.0 license"></a><img src="https://img.shields.io/badge/Android-10%2B-3DDC84?style=flat-square&logo=android&logoColor=white" alt="Android 10 or newer"><img src="https://img.shields.io/badge/engine-Rust-DEA584?style=flat-square&logo=rust&logoColor=white" alt="Rust engine">+ <a href="https://github.com/Chethan616/ClearPDF/actions/workflows/release.yml"><img src="https://img.shields.io/github/actions/workflow/status/Chethan616/ClearPDF/release.yml?branch=artefact&style=flat-square&label=build" alt="Build status"></a></p></div>@@ -45,11 +46,6 @@ ClearPDF was featured by HowToMen. [Watch the video from 9:08](https://www.youtu## Screenshots-<!--- Screenshots and GIFs go in docs/media/ under these names, then this block is uncommented:- desk-light.jpg, desk-dark.jpg, pdf-viewer.jpg, word.jpg, sheets.jpg, slides.jpg, glass-settings.jpg,- photo-editor.jpg, quick-preview.gif (opened from another app), pdf-scroll.gif-<p align="center"><img src="docs/media/desk-light.jpg" width="24%" alt="Artefact's desk in light mode: notes, lists and recent PDFs"><img src="docs/media/pdf-viewer.jpg" width="24%" alt="Reading and annotating a PDF in Artefact">@@ -63,47 +59,52 @@ ClearPDF was featured by HowToMen. [Watch the video from 9:08](https://www.youtu<img src="docs/media/glass-settings.jpg" width="24%" alt="Artefact's liquid glass and motion settings"></p><p align="center">- <img src="docs/media/quick-preview.gif" width="32%" alt="Quick Preview: a file opened from a chat shows over the chat">- <img src="docs/media/pdf-scroll.gif" width="32%" alt="Scrolling a PDF in Artefact">+ <img src="docs/media/pdf-scroll.gif" width="40%" alt="Scrolling a PDF in Artefact">+ <img src="docs/media/quick-preview.gif" width="40%" alt="Quick Preview: a file opened from a chat shows over the chat"></p>--->## What you can do-### PDFs+### Read and work with PDFs-- Read with smooth scrolling, pinch zoom, page thumbnails, bookmarks, a reading mode and search.-- Select and copy text, with a liquid-glass magnifier; read pages aloud; recognise text in scans (OCR, on the phone).-- Highlight, underline, strike out, draw, comment, add text and pictures, and edit the PDF's own text.-- Fill forms, sign with a drawn, typed or certificate (digital ID) signature, and check signatures.-- Organise, rotate, crop, delete and extract pages; combine, compress, protect and export PDFs; create PDFs from photos and scans.+- Read with smooth scrolling, pinch zoom, page thumbnails, bookmarks, a reading mode and in-document search.+- Select and copy text, with a liquid-glass magnifier; read pages aloud; run on-device OCR for scanned pages.+- Highlight, underline, strike out, draw ink, add shapes, text notes and pictures; edit the PDF's own text.+- Fill forms, sign with a drawn, typed or certificate (digital-ID) signature, and verify signatures.+- Organise, rotate, crop, delete and extract pages; merge, split, compress, protect and export PDFs; create PDFs from photos, text or scans.-### Word, Excel and PowerPoint+### Open and edit Office documents-- **Word** (.docx, .doc, .odt, .rtf, Markdown, text): read, search, read aloud, and edit paragraphs in place with bold, italic, lists, alignment and headings. Save as Word, OpenDocument, RTF, HTML, Markdown, text or PDF.-- **Excel** (.xlsx, .xls, .xlsb, .ods, .csv): a pannable grid with frozen panes and sheet tabs; type values and formulas (they recalculate), format cells, insert rows and columns, find, undo. Save as Excel or CSV, or export to PDF.-- **PowerPoint** (.pptx, and the text of older .ppt): slides as pages, a full-screen present mode, search, read aloud, export to PDF.+- **Word** (.docx, .doc, .odt, .rtf, Markdown, TXT): read, search, read aloud, and edit paragraphs in place with bold, italic, lists, alignment and headings. Save as Word, OpenDocument, RTF, HTML, Markdown, TXT or PDF.+- **Excel** (.xlsx, .xls, .xlsb, .ods, .csv): a pannable grid with frozen panes and sheet tabs; type values and formulas that recalculate, format cells, insert rows and columns, find and undo. Save as Excel or CSV, or export to PDF.+- **PowerPoint** (.pptx, and text from .ppt): slides as pages, full-screen present mode, search, read aloud and export to PDF.### Notes, lists, photos and voice- Quick notes with light formatting, to-do and shopping lists you tick right on the desk, voice memos with a waveform, and photo notes.-- A picture editor with exposure, contrast, highlights, shadows, vibrance, saturation and rotation, made the way Photos edits.+- A picture editor with exposure, contrast, highlights, shadows, vibrance, saturation and rotation — the way Photos edits.- A thought of the day to start writing from.### Quick Preview-Open a file from WhatsApp, Gmail or a file manager and it shows in a floating card over that app, like Apple's Quick Look. Drag it up to open it in Artefact, or close it and carry on where you were.+Open a file from WhatsApp, Gmail or a file manager and it floats over that app as a glass card, like Apple's Quick Look. Drag it up to open it in Artefact, or close it and carry on where you were.-## Formats+## Supported formats| Kind | Opens | Edits | Saves as ||---|---|---|---|-| PDF | .pdf | text, comments, forms, signatures, pages | PDF, images, text |+| PDF | .pdf | text, annotations, forms, signatures, pages | PDF, images, text || Word | .docx .docm .dotx .doc .odt .rtf .md .txt | paragraphs and formatting | .docx .odt .rtf .html .md .txt, PDF || Excel | .xlsx .xlsm .xlsb .xls .ods .csv .tsv | cells, formulas, formatting, rows and columns | .xlsx .csv, PDF |-| PowerPoint | .pptx .ppsx .potx, .ppt (text) | | .pptx, PDF |+| PowerPoint | .pptx .ppsx .potx, .ppt (text only) | — | .pptx, PDF |+| Images | .png .jpg .webp .bmp .heic | crop, rotate, adjust, draw | .png .jpg |-Rendering is done by Artefact's own engine, so no other app or online service is needed.+Rendering is done by Artefact's own Rust engine — no other app or online service is needed.++## Supported Android versions++- **Android 10 (API 29) or newer** is required for Artefact.+- Artefact replaces ClearPDF as an in-place upgrade; your files and settings are kept.## Download@@ -111,95 +112,153 @@ Rendering is done by Artefact's own engine, so no other app or online service is<a href="https://github.com/Chethan616/ClearPDF/releases/latest"><img src="https://img.shields.io/badge/Go%20to-Latest%20Release-0A84FF?style=for-the-badge&logo=github&logoColor=white" alt="Go to the latest release page"></a></p>-Download the APK from the latest release; it installs over ClearPDF. Artefact needs **Android 10 or newer**.+Open the release page and download the APK that matches your device:++| APK suffix | Choose it for |+|---|---|+| `-arm64-v8a.apk` | Most current 64-bit ARM phones and tablets |+| `-armeabi-v7a.apk` | 32-bit ARM devices |+| `-x86_64.apk` | x86-based emulators and devices |+| `-universal.apk` | A larger package containing all supported ABIs |++The APK installs over ClearPDF and keeps your data.### Install via Obtainium-[Obtainium](https://github.com/ImranR98/Obtainium) follows this repository's releases and installs updates for you.+[Obtainium](https://github.com/ImranR98/Obtainium) tracks this repository's releases and installs updates automatically.<p><a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/Chethan616/ClearPDF"><img src="https://img.shields.io/badge/Add%20to-Obtainium-1B5E20?style=for-the-badge&logo=f-droid&logoColor=white" alt="Add to Obtainium"></a></p>-Tap the badge on your phone with Obtainium installed. If it doesn't open the app, open Obtainium ▸ **Add App** and paste `https://github.com/Chethan616/ClearPDF`.+Tap the badge on your phone with Obtainium installed — it opens the add-app screen pre-filled. GitHub strips raw `obtainium://` links from README buttons, so the badge goes through Obtainium's redirect page instead of linking directly.++If the badge doesn't open the app, add it manually:-## Privacy+1. Open Obtainium → **Add App**.+2. Paste `https://github.com/Chethan616/ClearPDF`.+3. Pick the APK suffix for your device from the table above when prompted.-Artefact has no internet permission, no analytics, no ads and no accounts. Your documents, notes, recordings and photos never leave your phone. See [PRIVACY.md](PRIVACY.md).+## Privacy and network use-## How it's built+Artefact has **no internet permission** — the Android `INTERNET` permission is not declared in the manifest and cannot be granted. The app has no analytics, no ads and no account system. Your documents, notes, recordings and photos never leave your phone. See [PRIVACY.md](PRIVACY.md) for the full policy.-- **Engine:** Rust. PDF on [PdfCraft](https://github.com/storytold/pdfcraft); Word on [WordCraft](https://github.com/storytold/wordcraft); PowerPoint on [DeckCraft](https://github.com/storytold/deckcraft); Excel on [GridCraft](https://github.com/storytold/gridcraft); pictures on [LightCraft](https://github.com/storytold/lightcraft). One native library, `libartefact.so`, joined to the app with [UniFFI](https://github.com/mozilla/uniffi-rs).-- **App:** Kotlin and Jetpack Compose, with liquid glass from [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) and Material 3 Expressive motion.+## Technology++- **Engine:** Rust — PDF via [PdfCraft](https://github.com/storytold/pdfcraft), Word via [WordCraft](https://github.com/storytold/wordcraft), PowerPoint via [DeckCraft](https://github.com/storytold/deckcraft), Excel via [GridCraft](https://github.com/storytold/gridcraft), images via [LightCraft](https://github.com/storytold/lightcraft). One native library, `libartefact.so`, joined to the app with [UniFFI](https://github.com/mozilla/uniffi-rs).+- **App:** Kotlin and Jetpack Compose, with liquid-glass surfaces from [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) and Material 3 Expressive motion.+- **Text recognition:** bundled on-device ML Kit OCR.- **Languages:** English, Arabic, German, Spanish, French, Italian, Portuguese (Brazil and Portugal) and Russian.-## Build from source+## Build and run from source++### Requirements++- Android Studio with JDK 17 or newer.+- Android SDK Platform 36 and Build Tools 36.1.0.+- Android NDK (the version pinned in `engine/rust-toolchain.toml`).+- [Rust](https://rustup.rs) with [cargo-ndk](https://github.com/bbqsrc/cargo-ndk).+- An Android 10+ device or emulator.-You need Android Studio (JDK 17+), the Android NDK, and Rust through [rustup](https://rustup.rs) with [cargo-ndk](https://github.com/bbqsrc/cargo-ndk); the Rust version and Android targets are pinned in `engine/rust-toolchain.toml`.+### Build a debug APK-~~~bash+```bashgit clone https://github.com/Chethan616/ClearPDF.gitcd ClearPDF/android-./gradlew installDebug -Partefact.abis=arm64-v8a # x86_64 for an emulator-~~~+./gradlew installDebug -Partefact.abis=arm64-v8a # use x86_64 for an emulator+```-The build compiles the engine with cargo-ndk and generates its Kotlin bindings. Engine tests: `cd engine && cargo test -p artefact-mobile`.+On Windows, run `gradlew.bat installDebug -Partefact.abis=arm64-v8a`. The build compiles the Rust engine with cargo-ndk and generates its Kotlin bindings automatically.++### Build the release APKs++```bash+./gradlew assembleRelease+```++ABI-split APKs are written under `android/app/build/outputs/apk/release/`. Release builds use local signing credentials when configured; otherwise the debug key is used. Do not distribute a debug-signed build as an official release.++### Run engine tests++```bash+cd engine+cargo test -p artefact-mobile+```++### Project layout| Path | What it is ||---|---|-| `android/` | The app (Kotlin, Compose) and the liquid-glass `backdrop` module |+| `android/` | The app — Kotlin, Jetpack Compose, and the liquid-glass `backdrop` module || `engine/` | The Rust engine: PDF crates, the mobile bridge (`engine/mobile`), patched crates (`engine/vendor`), fonts and models |-| `docs/` | Design notes and pictures |+| `docs/` | Design notes and media || `fastlane/` | Store listings in nine languages |+| `samples/` | Sample files for manual testing |+| `tools/` | Developer utilities (i18n helper, etc.) |-ClearPDF's code and history are on the [`clearPDF`](https://github.com/Chethan616/ClearPDF/tree/clearPDF) branch.+To run from Android Studio, open the repository root, sync Gradle, and run the `app` module. ClearPDF's code and history are on the [`clearPDF`](https://github.com/Chethan616/ClearPDF/tree/clearPDF) branch.-## Contributing+## Contributing and supportIssues, ideas and focused pull requests are welcome.-- [Report a bug](https://github.com/Chethan616/ClearPDF/issues/new?template=bug_report.yml) or [request a feature](https://github.com/Chethan616/ClearPDF/issues/new?template=feature_request.yml).+- [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).- Join the conversation in [Discussions](https://github.com/Chethan616/ClearPDF/discussions).-- Read the [contribution guide](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md); report security issues through [SECURITY.md](SECURITY.md).+- 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).-If Artefact is useful to you, a star helps others find it.+If Artefact is useful to you, starring the repository helps others discover it.## FAQ<details><summary><strong>Is Artefact a free, open-source PDF reader for Android?</strong></summary>-Yes. Artefact is free and open source (MIT OR Apache-2.0), with no ads, no in-app purchases and no account. It reads, annotates, signs and edits PDFs, and also opens Word, Excel and PowerPoint files.+Yes. Artefact is free and open source (MIT OR Apache-2.0), with no ads, no in-app purchases and no account required. It reads, annotates, signs and edits PDFs, and also opens and edits Word, Excel and PowerPoint files.</details><details><summary><strong>Is ClearPDF the same app?</strong></summary>-Artefact is ClearPDF's next version, by the same developer. It updates ClearPDF in place. ClearPDF's code stays on the <code>clearPDF</code> branch.+Artefact is ClearPDF's next version, by the same developer. It updates ClearPDF in place, keeping your files and settings. ClearPDF's code stays on the [`clearPDF`](https://github.com/Chethan616/ClearPDF/tree/clearPDF) branch.</details><details>-<summary><strong>Does it work offline? Does it upload my files?</strong></summary>+<summary><strong>Can I use Artefact offline? Does it upload my files?</strong></summary>-It works fully offline and never uploads anything: the app has no internet permission. Every document is opened, edited and saved on your phone.+It works fully offline and never uploads anything. The app has no internet permission — it cannot reach the network at all. Every document is opened, edited and saved on your phone by Artefact's own engine.</details><details>-<summary><strong>Can I edit Word documents and Excel spreadsheets on Android with it?</strong></summary>+<summary><strong>Can I edit Word documents and Excel spreadsheets on Android?</strong></summary>-Yes. Word paragraphs are edited in place with formatting; spreadsheet cells take values and formulas that recalculate, with cell formatting and row and column changes. Both save in their own formats or export to PDF.+Yes. Word paragraphs are edited in place with formatting (bold, italic, lists, headings). Spreadsheet cells take values and formulas that recalculate, with cell formatting and row/column changes. Both save in their original formats or export to PDF.+</details>++<details>+<summary><strong>Can I edit existing PDF text?</strong></summary>++Yes — Artefact can edit text already in a PDF page, in addition to annotations, form fields, signatures and page management. Word and PowerPoint files are viewed and can be exported to PDF.</details><details><summary><strong>What Android version do I need?</strong></summary>-Android 10 or newer.+Android 10 (API 29) or newer.</details>## Credits-Artefact is built on [PdfCraft for Android](https://github.com/artcraft-android/pdfcraft-android) by the ArtCraft Team and storytold's PdfCraft, WordCraft, DeckCraft, GridCraft and LightCraft engines, with liquid glass by [Kyant0](https://github.com/Kyant0/AndroidLiquidGlass) and motion ideas from [QmDeve](https://github.com/QmDeve/AndroidLiquidGlassView). Every work it uses, with its licence, is listed in [ATTRIBUTION.md](ATTRIBUTION.md), [NOTICE](NOTICE) and the app's Settings ▸ Built with open source. You can also [sponsor the project](https://github.com/sponsors/Chethan616).+Artefact is built on [PdfCraft for Android](https://github.com/artcraft-android/pdfcraft-android) by the ArtCraft Team and storytold's PdfCraft, WordCraft, DeckCraft, GridCraft and LightCraft engines.++- [AndroidLiquidGlass](https://github.com/Kyant0/AndroidLiquidGlass) by Kyant0 for liquid-glass backdrop effects (Apache-2.0).+- [AndroidLiquidGlassView](https://github.com/QmDeve/AndroidLiquidGlassView) by QmDeve for motion techniques (MIT).+- [UniFFI](https://github.com/mozilla/uniffi-rs) by Mozilla for Rust–Kotlin bindings (MPL-2.0).++Every work Artefact uses, with its licence, is listed in [ATTRIBUTION.md](ATTRIBUTION.md), [NOTICE](NOTICE) and the app's **Settings ▸ Built with open source**. You can also [sponsor the project on GitHub](https://github.com/sponsors/Chethan616).## License-Artefact is licensed under either the [MIT License](LICENSE-MIT) or the [Apache License 2.0](LICENSE-APACHE), at your option. Third-party works keep their own licences.+Artefact is licensed under either the [MIT License](LICENSE-MIT) or the [Apache License 2.0](LICENSE-APACHE), at your option. Third-party works keep their own licences, listed in [ATTRIBUTION.md](ATTRIBUTION.md) and [NOTICE](NOTICE).