PdfAI

class PdfAI(val document: PdfDocument, val options: PdfAIOptions = PdfAIOptions())

The entry point. One instance per document.

Every feature reports availability separately (AVL-2) and re-checks it on each call (AVL-3), because the user can turn the platform's AI off mid-session.

Constructors

Link copied to clipboard
constructor(document: PdfDocument, options: PdfAIOptions = PdfAIOptions())

Types

Link copied to clipboard
inner class AltText
Link copied to clipboard
inner class Answers
Link copied to clipboard
inner class Diff
Link copied to clipboard
inner class Forms
Link copied to clipboard
inner class Redactions
Link copied to clipboard
inner class Remediation
Link copied to clipboard
inner class Summaries

Properties

Link copied to clipboard

Lists figures in a tagged document that have no alternate text and proposes a description, or decorative marking, for each (ALT). Descriptions come from ML Kit's on-device image description when PdfAIOptions.context is set and the device has it, else from the custom provider. Nothing is written until apply, which returns a new document.

Link copied to clipboard

Answers questions from the document, citing the sentences they came from (ANS).

Link copied to clipboard

Compares this document (the original) with a revised version: sentences aligned without a model, and each reworded pair labelled as a change in meaning or wording by the custom provider.

Link copied to clipboard
val document: PdfDocument

Only the core's public API is used (PKG-4).

Link copied to clipboard

Proposes values for the document's form fields from a profile the host passes in (FORM). The synonym list runs on every device; the custom provider matches fields it cannot. The profile is not stored. Nothing is written until apply.

Link copied to clipboard
Link copied to clipboard

Suggests likely personal data to redact (RED). Patterns run on every device; the custom provider, when configured, adds names, addresses, dates of birth and ID numbers. Nothing is written until apply.

Link copied to clipboard

Proposes tags and a reading order for an untagged document (REM), by rules on the page objects, identically on every platform. Nothing is written until apply, which returns a new document; describe its figures with altText afterwards.

Link copied to clipboard

Summarises the document or a page range (SUM).