Android PDF Annotations
Adds, edits and saves PDF highlights, notes and stamps with Android's built-in PDF tools, version checks included.
Claude's review
7/10 Precise Android platform PDF annotation contracts (version gate, -1 return, id based updates, android.util.Pair, write before close, render flags).
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Use when reading, adding, updating, or removing PDF annotations (highlight, free-text, stamp) or page objects (path/text/image) with Android's platform PDF APIs, or when saving those edits back to disk — the editing surface added in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on API 31+), android.graphics.pdf.component. Covers the version gate, the open-edit-write workflow, and the id/render-flag/save contracts. Not for display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: pdf-annotations
description: >
Use when reading, adding, updating, or removing PDF annotations (highlight,
free-text, stamp) or page objects (path/text/image) with Android's platform
PDF APIs, or when saving those edits back to disk — the editing surface added
in API 36.1 (PdfRenderer.Page) and SDK extension 18 (PdfRendererPreV.Page on
API 31+), android.graphics.pdf.component. Covers the version gate, the
open-edit-write workflow, and the id/render-flag/save contracts. Not for
display-only PdfViewerFragment work, PdfDocument creation-from-scratch, form
filling, or third-party PDF SDKs (iText, PDFBox, PSPDFKit).
---
# Platform PDF annotation & page-object editing
Android can natively edit PDF annotations since API 36.1 — before that the
platform story was render-only and the docs still say so: the Jetpack viewer
guide's PDF surface is `PdfViewerFragment`, which explicitly does **not**
support edit mode and hands annotation off to other apps via an
`android.intent.action.ANNOTATE` intent
[kb://android/develop/ui/views/layout/pdf/implement-pdf-viewer]. Do not
conclude "use a third-party library" for annotation work before applying the
version gate below.
## The version gate (decide the entry point first)
Two parallel renderers expose the same editing surface
(`android.graphics.pdf.component`):
| Entry point | Editing available | Device requirement |
|---|---|---|
| `PdfRenderer.Page` | API 36.1+ | platform release |
| `PdfRendererPreV.Page` | SDK extension 18 | API 31+ with the PDF module updated (PreV itself needs extension 13) |
Gate at runtime with `SdkExtensions.getExtensionVersion(Build.VERSION_CODES.S)`
[kb://android/guide/sdk-extensions/index]. Extension 18 reaches back to API 31
via mainline updates, so `PdfRendererPreV` is the branch that covers most
devices.
## The workflow: open → edit → write
...From rcosteira79's repository, MIT licence.
Related skills
-
Checked
Android Gradle Plugin upgrade
Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.
8/101 credit -
Checked
CocoaPods to SwiftPM
Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.
8/101 credit -
Checked
Kotlin Native build speed
Diagnoses and fixes slow Kotlin/Native iOS builds in Kotlin Multiplatform projects, both locally and on CI.
7/101 credit -
Checked
SwiftUI Liquid Glass
Adds and reviews Liquid Glass in SwiftUI apps for iOS 26, avoiding pitfalls with bars, buttons and scrolling.
7/101 credit -
Checked
Native Mobile App Design
Designs Expo and React Native screens that feel truly native, with proper navigation, motion and dark mode.
7/101 credit -
Checked
EAS cloud simulators
Runs your app on Expo's cloud iOS and Android simulators, so you can test without a local simulator.
7/101 credit