Package-level declarations

Types

Link copied to clipboard
class PdfAttachment(val fileName: String, val bytes: ByteArray, val mimeType: String = "application/octet-stream", val description: String? = null)

A file embedded into the produced PDF.

Link copied to clipboard
data class PdfEncryption(val ownerPassword: String, val userPassword: String = "", val allowPrinting: Boolean = true, val allowCopying: Boolean = true, val allowModification: Boolean = false)

Standard-security password protection applied to a document.

Link copied to clipboard
data class PdfMetadata(val title: String? = null, val author: String? = null, val subject: String? = null, val keywords: String? = null, val creator: String? = null, val producer: String? = "PdfKmp", val encryption: PdfEncryption? = null, val attachments: List<PdfAttachment> = emptyList(), val pdfACompliance: Boolean = false, val language: String? = null)

Document metadata written into the PDF info dictionary. All fields are optional; renderers omit empty values.