class Client
Sends conversion parameters to the PDFire.io servers and builds the correct result.
Client(apiKey: String)
Sends conversion parameters to the PDFire.io servers and builds the correct result. |
var apiKey: String
Your PDFire.io API key. |
fun convert(params: Parameters): Result
Submit the conversion/merge parameters and return the result. |
|
fun convertHTML(html: String, params: ConversionParameters? = null): Result
Convert the given HTML with the provided conversion parameters. |
|
fun convertToByteArray(params: Parameters): ByteArray
Submit the conversion/merge parameters and return the result as a byte array. |
|
fun convertURL(url: String, params: ConversionParameters? = null): Result
Convert the given URL with the provided conversion parameters. |
|
fun convertUsingCDN(params: Parameters): Conversion
Submit the conversion/merge parameters and return the conversion result. Throws an error if the account does not include the CDN option. |
|
fun convertUsingStorage(params: Parameters, configure: (StorageParameter) -> Unit = null): Conversion
Submit the conversion/merge parameters and return the conversion result. Throws a error if the accout does not include the storage option. |
val baseUrl: String
Base URL to the PDFire.io API. |