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
Audit and tighten third-party licensing records
chethan6162bb24289c7a9
diff --git a/ATTRIBUTION.md b/ATTRIBUTION.mdindex 2d2143b..c642a5d 100644--- a/ATTRIBUTION.md+++ b/ATTRIBUTION.md@@ -1,10 +1,10 @@# Attribution-<!-- Generated from ATTRIBUTION.toml by `cargo xtask assets --write`. Do not edit by hand. -->+<!-- Human-readable companion to ATTRIBUTION.toml; keep both in sync. -->-Every asset Artefact's engine includes, bundles or uses to build its published material, with its author, source and licence. The policy is in [AGENTS.md](AGENTS.md) §1. The machine-readable list, with the SHA-256 of every asset but the translation catalogs, is [ATTRIBUTION.toml](ATTRIBUTION.toml). Licence texts are kept beside the assets and summarised in [NOTICE](NOTICE).+Every asset Artefact includes, bundles or uses to build its published material, with its author, source and licence. The policy is in [docs/licensing-policy.md](docs/licensing-policy.md). The machine-readable list, with the SHA-256 of every asset but the translation catalogs, is [ATTRIBUTION.toml](ATTRIBUTION.toml). Licence texts are kept beside the assets and summarised in [NOTICE](NOTICE).-## In this repository (331)+## In this repository (265)| Asset | Title | Author | Licence | Source | Used for ||---|---|---|---|---|---|@@ -245,8 +245,8 @@ Every asset Artefact's engine includes, bundles or uses to build its published m| `engine/vendor/hayro-interpret/assets/FoxitSerifItalic.pfb` | FoxitSerifItalic (standard-14 substitute font) | Foxit Software Inc. / PDFium Authors | BSD-3-Clause | https://pdfium.googlesource.com/pdfium (via hayro-interpret 0.7.0 assets/) | Renders non-embedded standard-14 fonts (vendored hayro-interpret) || `engine/vendor/hayro-interpret/assets/FoxitSymbol.pfb` | FoxitSymbol (standard-14 substitute font) | Foxit Software Inc. / PDFium Authors | BSD-3-Clause | https://pdfium.googlesource.com/pdfium (via hayro-interpret 0.7.0 assets/) | Renders non-embedded standard-14 fonts (vendored hayro-interpret) || `engine/vendor/hayro-interpret/assets/CGATS001Compat-v2-micro.icc` | CGATS001Compat v2 micro ICC profile | Clinton Ingram (saucecontrol/Compact-ICC-Profiles) | CC0-1.0 | https://github.com/saucecontrol/Compact-ICC-Profiles | Default CMYK colour conversion (vendored hayro-interpret) |-| `engine/crates/fonts/src/std14_metrics.rs` | Standard-14 font advance widths and encodings (as Rust tables) | Adobe (Core14 AFM metrics, PDF specification encodings); tables generated by the PdfCraft contributors | MIT OR Apache-2.0 | ISO 32000-2 Annex D and the Adobe Core14 AFM metrics. Generated by joining the published WinAnsi, Symbol and ZapfDingbats encodings (code to glyph name) with the per-glyph advance widths, then spot-checked against the specification by hand in the tests of engine/crates/fonts/src/std14.rs. Data only: the code that reads these tables lives in std14.rs, so that ordinary edits do not churn this file's hash. | Advance widths for the fourteen standard fonts, which a PDF may name without embedding. Non-visual data, not a typeface: the item AGENTS.md 1.1 permits, held first-party so generated appearance streams and the renderer agree. |-| `engine/vendor/hayro-cmap/assets/cmaps.brotli` | Adobe CMap resources (predefined CJK CMaps) | Adobe | BSD-3-Clause | https://github.com/adobe-type-tools/cmap-resources (via hayro-cmap 0.1.0 assets/) | Character-code mapping tables required to read CJK PDFs. Non-visual data, allowed by AGENTS.md §1.1 |+| `engine/crates/fonts/src/std14_metrics.rs` | Standard-14 font advance widths and encodings (as Rust tables) | Adobe (Core14 AFM metrics, PDF specification encodings); tables generated by the PdfCraft contributors | MIT OR Apache-2.0 | ISO 32000-2 Annex D and the Adobe Core14 AFM metrics. Generated by joining the published WinAnsi, Symbol and ZapfDingbats encodings (code to glyph name) with the per-glyph advance widths, then spot-checked against the specification by hand in the tests of engine/crates/fonts/src/std14.rs. Data only: the code that reads these tables lives in std14.rs, so that ordinary edits do not churn this file's hash. | Advance widths for the fourteen standard fonts, which a PDF may name without embedding. Non-visual technical data; see docs/licensing-policy.md. |+| `engine/vendor/hayro-cmap/assets/cmaps.brotli` | Adobe CMap resources (predefined CJK CMaps) | Adobe | BSD-3-Clause | https://github.com/adobe-type-tools/cmap-resources (via hayro-cmap 0.1.0 assets/) | Character-code mapping tables required to read CJK PDFs. Non-visual technical data; see docs/licensing-policy.md || `engine/assets/icons/pin.svg` | Lucide icon "pin" | Lucide Contributors (portions Cole Bemis, Feather) | ISC | https://github.com/lucide-icons/lucide (npm lucide-static 1.49.0, icons/pin.svg) | UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs || `engine/assets/icons/move-right.svg` | Lucide icon "move-right" | Lucide Contributors (portions Cole Bemis, Feather) | ISC | https://github.com/lucide-icons/lucide (npm lucide-static 1.49.0, icons/move-right.svg) | UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs || `engine/assets/icons/reply.svg` | Lucide icon "reply" | Lucide Contributors (portions Cole Bemis, Feather) | ISC | https://github.com/lucide-icons/lucide (npm lucide-static 1.49.0, icons/reply.svg) | UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs |@@ -267,6 +267,14 @@ Every asset Artefact's engine includes, bundles or uses to build its published m| `engine/assets/icons/pilcrow.svg` | Lucide icon "pilcrow" | Lucide Contributors (portions Cole Bemis, Feather) | ISC | https://github.com/lucide-icons/lucide (npm lucide-static 1.49.0, icons/pilcrow.svg) | UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs || `engine/assets/icons/move-horizontal.svg` | Lucide icon "move-horizontal" | Lucide Contributors (portions Cole Bemis, Feather) | ISC | https://github.com/lucide-icons/lucide (npm lucide-static 1.49.0, icons/move-horizontal.svg) | UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs |+| `android/app/src/main/res/font/jakarta.ttf` | Plus Jakarta Sans Regular | The Plus Jakarta Sans Project Authors | OFL-1.1 | https://github.com/tokotype/PlusJakartaSans | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/jakarta_italic.ttf` | Plus Jakarta Sans Italic | The Plus Jakarta Sans Project Authors | OFL-1.1 | https://github.com/tokotype/PlusJakartaSans | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/bricolage.ttf` | Bricolage Grotesque Variable | The Bricolage Grotesque Project Authors | OFL-1.1 | https://github.com/ateliertriay/bricolage | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/fraunces.ttf` | Fraunces Variable | The Fraunces Project Authors | OFL-1.1 | https://github.com/undercasetype/Fraunces | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/dm_serif.ttf` | DM Serif Display Regular | Colophon Foundry | OFL-1.1 | https://github.com/googlefonts/dm-fonts | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/dm_serif_italic.ttf` | DM Serif Display Italic | Colophon Foundry | OFL-1.1 | https://github.com/googlefonts/dm-fonts | Android app UI typeface; source and license are also listed in the app Licences screen |+| `android/app/src/main/res/font/doto.ttf` | Doto Variable | The Doto Project Authors | OFL-1.1 | https://github.com/oliverlalan/Doto | Android app UI typeface; source and license are also listed in the app Licences screen |+## Compiled in through dependencies (6)| Crate | File | Title | Author | Licence | Source | Used for |@@ -276,11 +284,11 @@ Every asset Artefact's engine includes, bundles or uses to build its published m| `epaint_default_fonts` 0.36.2 | `fonts/Hack-Regular.ttf` | Hack Regular | Source Foundry Authors (derived from Bitstream Vera / DejaVu) | MIT AND Bitstream-Vera | https://github.com/source-foundry/Hack | egui fallback fonts (eframe feature default_fonts) || `epaint_default_fonts` 0.36.2 | `fonts/NotoEmoji-Regular.ttf` | Noto Emoji (monochrome) | Google Inc. | OFL-1.1 | https://github.com/googlefonts/noto-emoji | egui fallback fonts (eframe feature default_fonts) || `epaint_default_fonts` 0.36.2 | `fonts/emoji-icon-font.ttf` | emoji-icon-font | John Slegers | MIT | https://github.com/jslegers/emoji-icon-font | egui fallback fonts (eframe feature default_fonts) |-| `hayro-interpret` 0.7.0 | `src/font/generated/metrics.rs` | Standard-14 font metrics and encodings (as Rust tables) (non-visual data, AGENTS.md §1.1) | Adobe (Core 14 AFM metrics, PDF specification encodings); tables by The Hayro Authors | MIT OR Apache-2.0 | ISO 32000-2 Annex D; Adobe Core14 AFM files (via vendored hayro-interpret) | Glyph widths and encodings for non-embedded standard fonts. Non-visual data, allowed by AGENTS.md §1.1 |+| `hayro-interpret` 0.7.0 | `src/font/generated/metrics.rs` | Standard-14 font metrics and encodings (as Rust tables) (non-visual technical data) | Adobe (Core 14 AFM metrics, PDF specification encodings); tables by The Hayro Authors | MIT OR Apache-2.0 | ISO 32000-2 Annex D; Adobe Core14 AFM files (via vendored hayro-interpret) | Glyph widths and encodings for non-embedded standard fonts. See docs/licensing-policy.md |-## Downloaded at build time (22)+## Retrieved build inputs and bundled models (22)-Fonts are fetched by `cargo xtask demo-pdf` into `target/demo-fonts/`, OCR models by `cargo xtask models` into `engine/assets/models/`; each is verified by SHA-256 and never committed.+The 20 showcase-PDF fonts are fetched by `cargo xtask demo-pdf` into `target/demo-fonts/` and are not committed. The two OCR models are committed under `engine/assets/models/` with their attribution and license files; source builds can also fetch them with `cargo xtask models`. The recorded SHA-256 values identify the expected files.| File | Title | Author | Licence | Source | Used for ||---|---|---|---|---|---|diff --git a/ATTRIBUTION.toml b/ATTRIBUTION.tomlindex 2074043..e9c942f 100644--- a/ATTRIBUTION.toml+++ b/ATTRIBUTION.toml@@ -2614,7 +2614,7 @@ licence = "MIT OR Apache-2.0"licence_file = "LICENSE-MIT"kind = "data"adobe_data = true-usage = "Advance widths for the fourteen standard fonts, which a PDF may name without embedding. Non-visual data, not a typeface: the item AGENTS.md 1.1 permits, held first-party so generated appearance streams and the renderer agree."+usage = "Advance widths for the fourteen standard fonts, which a PDF may name without embedding. Non-visual data, not a typeface: the item docs/licensing-policy.md permits, held first-party so generated appearance streams and the renderer agree."sha256 = "f225e0b044875b8fa6375b6b5ad935f0d99fcc1ad03ecf9f0baae2cedbfca4d2"[[bundled]]@@ -2674,7 +2674,7 @@ licence = "BSD-3-Clause"licence_file = "engine/vendor/hayro-cmap/assets/LICENSE.txt"kind = "data"adobe_data = true-usage = "Character-code mapping tables required to read CJK PDFs. Non-visual data, allowed by AGENTS.md §1.1"+usage = "Character-code mapping tables required to read CJK PDFs. Non-visual data, allowed by docs/licensing-policy.md"sha256 = "ddf37af521d904d5646c2fc37b2b7e912dc1b56f0d210190b61f598154758e46"[[bundled]]@@ -2687,7 +2687,7 @@ source = "ISO 32000-2 Annex D; Adobe Core14 AFM files (via vendored hayro-interplicence = "MIT OR Apache-2.0"kind = "data"adobe_data = true-usage = "Glyph widths and encodings for non-embedded standard fonts. Non-visual data, allowed by AGENTS.md §1.1"+usage = "Glyph widths and encodings for non-embedded standard fonts. Non-visual data, allowed by docs/licensing-policy.md"sha256 = "2ec9e608573eda459de1e1d9bda3bb494315e36bee885acc88912a11fe0caa41"[[fetched]]@@ -3196,4 +3196,79 @@ licence_file = "engine/assets/icons/LICENSE-lucide.txt"kind = "icon"usage = "UI icon, embedded via engine/crates/ui-egui/src/icon_data.rs"sha256 = "864ab2f19254e6ac7240bc6a98323197332e8f714d4d3f94831f41309e5ef2f7"+[[asset]]+path = "android/app/src/main/res/font/jakarta.ttf"+title = "Plus Jakarta Sans Regular"+author = "The Plus Jakarta Sans Project Authors"+source = "https://github.com/tokotype/PlusJakartaSans"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-PlusJakartaSans.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "89b3fb38aa0d275d7a731d0d817a4f1622b316b4d7fbdedcf02ee9099ff68bc8"++[[asset]]+path = "android/app/src/main/res/font/jakarta_italic.ttf"+title = "Plus Jakarta Sans Italic"+author = "The Plus Jakarta Sans Project Authors"+source = "https://github.com/tokotype/PlusJakartaSans"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-PlusJakartaSans.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "9529eb888668b6a3c6dd75b6341a2fc5263fb6c9e788822e6117c29dd9e8b115"++[[asset]]+path = "android/app/src/main/res/font/bricolage.ttf"+title = "Bricolage Grotesque Variable"+author = "The Bricolage Grotesque Project Authors"+source = "https://github.com/ateliertriay/bricolage"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-BricolageGrotesque.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "413e7357809ddd12fd80a96a8a396de0e401638d4acd3cb3e37532f0472ac682"++[[asset]]+path = "android/app/src/main/res/font/fraunces.ttf"+title = "Fraunces Variable"+author = "The Fraunces Project Authors"+source = "https://github.com/undercasetype/Fraunces"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-Fraunces.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "177ff6c0f14e5550a3c624247cd1189611d4eb65d000b14944c63d967958abbb"+[[asset]]+path = "android/app/src/main/res/font/dm_serif.ttf"+title = "DM Serif Display Regular"+author = "Colophon Foundry"+source = "https://github.com/googlefonts/dm-fonts"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-DMSerifDisplay.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "8cc3643535edf039aa5d95440a8542735e9197e4f4b8d9303e980fefbf5ab616"++[[asset]]+path = "android/app/src/main/res/font/dm_serif_italic.ttf"+title = "DM Serif Display Italic"+author = "Colophon Foundry"+source = "https://github.com/googlefonts/dm-fonts"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-DMSerifDisplay.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "df74c0ac387baeaeb0fe4f2324e1668e6a3ed8c09cd9796fe162c71753e19e45"++[[asset]]+path = "android/app/src/main/res/font/doto.ttf"+title = "Doto Variable"+author = "The Doto Project Authors"+source = "https://github.com/oliverlalan/Doto"+licence = "OFL-1.1"+licence_file = "android/app/src/main/assets/licences/OFL-Doto.txt"+kind = "font"+usage = "Android app UI typeface; source and license are also listed in the app's Licences screen"+sha256 = "6f4fe7d37853b91df3698daa84cde2dbe1c9695d88c986e6510134910337d426"diff --git a/NOTICE b/NOTICEindex 38ee837..e8dcc93 100644--- a/NOTICE+++ b/NOTICE@@ -34,9 +34,12 @@ of glass thumbs follows LiquidTracker from AndroidLiquidGlassView by Donny YaleMascots: body outlines from bot-avatars by Jakub Antalik (Libraries.dev), MIT, drawn with anexpressive face rig in Compose (android/app/src/main/java/com/chethan616/clearpdf/ui/mascot).-Type: Plus Jakarta Sans (Copyright 2020 The Plus Jakarta Sans Project Authors), Doto (Copyright-2024 The Doto Project Authors) and DM Serif Display (Copyright 2014 Colophon Foundry), each under-the SIL Open Font License 1.1 (android/app/src/main/assets/licences/OFL-*.txt).+Android UI typefaces: Plus Jakarta Sans (Copyright 2020 The Plus Jakarta Sans Project Authors),+Bricolage Grotesque (Copyright 2022 The Bricolage Grotesque Project Authors), Fraunces (Copyright+2018 The Fraunces Project Authors), DM Serif Display (Copyright 2014 Colophon Foundry) and Doto+(Copyright 2024 The Doto Project Authors), each under the SIL Open Font License 1.1. Their license+texts are in android/app/src/main/assets/licences/OFL-*.txt. The app's Licences screen credits the+font projects and links to their sources.The original notice of PdfCraft for Android follows.@@ -76,15 +79,15 @@ list (author, source, license) is in ATTRIBUTION.md.- Colour profiles in hayro-interpret — CGATS001Compat-v2-micro.icc (CC0-1.0, Clinton Ingram) andLAB.icc (generated by the hayro authors with LittleCMS 2; MIT OR Apache-2.0).-Android app (apps/pdfcraft-android):+Android app (android/app):- UniFFI (https://github.com/mozilla/uniffi-rs) — MPL-2.0: the uniffi crate in the library, and thegenerator of the Kotlin bindings (generated at build time, not committed).- JNA (https://github.com/java-native-access/jna) — Apache-2.0 (dual-licensed with LGPL-2.1; usedunder Apache-2.0).- AndroidX, Jetpack Compose, ExifInterface and kotlinx.coroutines — Apache-2.0.-- Ocrs text-recognition models (engine/assets/models, committed so the build downloads nothing;- apps/pdfcraft-android/fetch-models.sh fetches them again) by Robert Knight — CC-BY-SA-4.0. The app- ships them unmodified with their licence.+- Ocrs text-recognition models (engine/assets/models, committed so the build downloads nothing) by+ Robert Knight — CC-BY-SA-4.0. The app ships them unmodified with the license and attribution in+ engine/assets/models/ATTRIBUTION.txt. Source builds may fetch them using `cargo xtask models`.Required notices:diff --git a/README.md b/README.mdindex 7e81489..80e4b60 100644--- a/README.md+++ b/README.md@@ -226,7 +226,6 @@ cargo test -p artefact-mobile| `engine/` | The Rust engine: PDF crates, the mobile bridge (`engine/mobile`), patched crates (`engine/vendor`), fonts and models || `docs/` | Design notes and media || `fastlane/` | Store listings in nine languages |-| `samples/` | Sample files for manual testing || `tools/` | Developer utilities (i18n helper, etc.) |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.diff --git a/docs/licensing-policy.md b/docs/licensing-policy.mdnew file mode 100644index 0000000..e831ede--- /dev/null+++ b/docs/licensing-policy.md@@ -0,0 +1,26 @@+# Licensing and attribution policy++Artefact is distributed under the MIT License or Apache License, Version 2.0, at the recipient's+option. Third-party code, data, fonts, models, and media retain their own licenses and required+notices; the project license does not relicense them.++Before adding material that will be committed, bundled into a release, or used to build a release:++1. Record its exact source, creator, version or revision where available, license, and intended use+ in `ATTRIBUTION.toml` (or the build-input / fetched sections for material supplied at build time).+2. Keep the required license text or notice in the repository or the distributed application, and+ summarize material obligations in `NOTICE`.+3. Check that the license allows the planned use and redistribution, including any attribution,+ share-alike, trademark, or reserved-font-name terms. A download being free is not, by itself,+ evidence that redistribution is permitted.+4. Do not commit third-party material when its source or redistribution rights cannot be verified.+ Use a project-authored replacement or ask the rights holder for permission.+5. Keep hashes for tracked binary assets in `ATTRIBUTION.toml` so later changes can be reviewed.++For Rust dependencies, keep package license metadata and applicable notices. Review the actual+dependency graph for each distributed target; declared license metadata alone does not establish+compatibility. Review Android dependencies and generated/bundled resources as part of the same+release audit.++This policy is a maintenance checklist, not a legal opinion or a guarantee against claims. For+uncertain rights, obtain permission or advice from qualified counsel before distribution.diff --git a/samples/AppBody-Sample-English.docx b/samples/AppBody-Sample-English.docxdeleted file mode 100644index 4b8185c..0000000Binary files a/samples/AppBody-Sample-English.docx and /dev/null differdiff --git a/samples/file-example_PDF_1MB.pdf b/samples/file-example_PDF_1MB.pdfdeleted file mode 100644index 13ce574..0000000Binary files a/samples/file-example_PDF_1MB.pdf and /dev/null differdiff --git a/samples/file_example_PPT_1MB.ppt b/samples/file_example_PPT_1MB.pptdeleted file mode 100644index 769693d..0000000Binary files a/samples/file_example_PPT_1MB.ppt and /dev/null differdiff --git a/samples/file_example_XLSX_100.xlsx b/samples/file_example_XLSX_100.xlsxdeleted file mode 100644index 11855fc..0000000Binary files a/samples/file_example_XLSX_100.xlsx and /dev/null differ