class MergeParameters : Parameters
Configuration for a conversion of multiple documents (merge).
Options may require a minimum subscription tier to be usable. See the documentation for information on the available options.
MergeParameters(documents: MutableList<ConversionParameters> = mutableListOf(), ownerPassword: String? = null, userPassword: String? = null, cdn: Boolean? = null, storage: StorageParameter? = null)
Configuration for a conversion of multiple documents (merge). |
var cdn: Boolean?
Indicates if the PDF should be served via the CDN. |
|
var documents: MutableList<ConversionParameters>
Conversion options (ConversionParameters) for the documents. |
|
var ownerPassword: String?
Secures the PDF with an owner password. |
|
var storage: StorageParameter?
Storage configuration for the PDF. |
|
var userPassword: String?
Secures the PDF with a user password. |
fun addDocument(configure: (ConversionParameters) -> Unit = null): MergeParameters
Add a document to the PDF. |
|
fun addDocuments(vararg documents: ConversionParameters): MergeParameters
Add documents to the PDF. |
|
fun secure(owner: String? = null, user: String? = null): MergeParameters
Secure the PDF with an owner / user password. |
|
fun setCDN(cdn: Boolean): MergeParameters
Set the CDN option. |
|
fun toMap(): Map<String, Any?>
Create a map from the parameters. |
|
fun useCDN(): MergeParameters
Serve the PDF via the PDFire.io CDN. |
|
fun useStorage(configure: (StorageParameter) -> Unit): MergeParameters
Serve the PDF via a custom cloud storage disk. fun useStorage(use: Boolean): MergeParameters
Serve the PDF via the default custom cloud storage disk. |