PdfScriptRequest

sealed class PdfScriptRequest

What a script asked the host to do, when it wants something outside the document.

Inheritors

Types

Link copied to clipboard
data object Beep : PdfScriptRequest

app.beep().

Link copied to clipboard
data class Document(val what: String) : PdfScriptRequest

this.closeDoc() or this.saveAs(): close or save the file.

Link copied to clipboard
data class Focus(val fieldName: String) : PdfScriptRequest

field.setFocus(): put the caret in a field.

Link copied to clipboard
data class GoTo(val pageIndex: Int?, val namedDestination: String?) : PdfScriptRequest

this.pageNum = n or this.gotoNamedDest(name): move the reader.

Link copied to clipboard
data class LaunchUrl(val url: String) : PdfScriptRequest

app.launchURL(url): open a web address.

Link copied to clipboard
data object Mail : PdfScriptRequest

this.mailDoc() or this.mailForm(): send the document by mail.

Link copied to clipboard
data class MenuItem(val name: String) : PdfScriptRequest

app.execMenuItem(name).

Link copied to clipboard
data object Print : PdfScriptRequest

this.print(): print the document.

Link copied to clipboard
data class SubmitForm(val url: String) : PdfScriptRequest

this.submitForm({ cURL: ... }): send the form's values somewhere.