ChromiumWrapper

data class ChromiumWrapper(val path: String, val workingDirectory: File? = null) : ExecutableWrapper

Wrapper for a Chromium-family browser executable, used to print HTML documents to PDF via the Chrome DevTools Protocol.

Parameters

path

path to the browser executable

Constructors

Link copied to clipboard
constructor(path: String, workingDirectory: File? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val isValid: Boolean
Link copied to clipboard
open override val path: String
Link copied to clipboard
open override val workingDirectory: File?

Working directory to run the executable in. If null, the current working directory will be used.

Functions

Link copied to clipboard
fun start(vararg args: String): Process

Starts the browser as a detached process, without waiting for it to exit. stderr is merged into stdout, so DevTools startup messages can be read from Process.getInputStream.

Link copied to clipboard