apply

suspend fun apply(types: Map<String, PdfTagType> = emptyMap(), language: String? = null, title: String? = null): PdfDocument

Tags the document as proposed, with type overrides by block id, returning a new document. title defaults to the first H1's text, else the first heading's.