class Conversion : AbstractResult
Represents a conversion that has failed or is served via a CDN / custom cloud storage.
Conversion(initializedAt: OffsetDateTime, finishedAt: OffsetDateTime, status: String, error: String?, result: ConversionResult)
Represents a conversion that has failed or is served via a CDN / custom cloud storage. |
val error: String?
Error message if the conversion failed. |
|
val finishedAt: OffsetDateTime
Completion / Failure time of the conversion. |
|
val initializedAt: OffsetDateTime
Initilization time of the conversion. |
|
val result: ConversionResult
The conversion result. |
|
val status: String
Either "succeeded" or "failed". |
fun download(): ByteArray
Download the PDF from the CDN or custom cloud storage. |
|
fun getBytes(): ByteArray
Return the PDF as a byte array. |
open fun saveTo(path: String): Unit
Save the PDF to the given path. |