PdfArticleThread

data class PdfArticleThread(val title: String? = null, val author: String? = null, val subject: String? = null, val keywords: String? = null, val beads: List<PdfArticleThread.ArticleBead> = emptyList())

One article thread from the document — ISO 32000-1 §12.4.3.

An "article" is a reading order superimposed on the layout: a sequence of rectangular beads, each anchored to a page region. Readers use threads to jump from "column 1 → column 2 → next page column 1 …" while ignoring the visual flow.

Metadata fields (title/author/etc.) come from the thread's /I info dict, which is optional and may be missing or partially populated.

Constructors

Link copied to clipboard
constructor(title: String? = null, author: String? = null, subject: String? = null, keywords: String? = null, beads: List<PdfArticleThread.ArticleBead> = emptyList())

Types

Link copied to clipboard
data class ArticleBead(val pageIndex: Int?, val rect: Rectangle)

One bead — a rectangular region on a page that belongs to the thread. pageIndex is null only when the bead's /P doesn't resolve to a known page (rare; usually a malformed PDF).

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val author: String? = null
Link copied to clipboard

Beads in reading order (the /F chain followed via /N until cycle).

Link copied to clipboard
val keywords: String? = null
Link copied to clipboard
val subject: String? = null
Link copied to clipboard
val title: String? = null