Companion

object Companion

Functions

Link copied to clipboard
fun from(stream: PdfStream, refs: IndirectResolver? = null): ImageXObject

Pull a stream from a /XObject /Image resource entry into an ImageXObject. refs (when provided) resolves an indirect /SMask reference so the image's alpha is carried through; without it, only a directly-embedded mask is read.