Fields

Fields
ParameterDescription
PdfViewPassword
String
optionalPassword required to open and view the generated PDF.
PdfOwnerPassword
String
optionalOwner (editor) password for the generated PDF.
LockPdf
Boolean
optionalDisable PDF editing when true.
AllowPdfPrinting
Boolean
optionalEnable PDF printing. Only applicable when LockPdf is true or PdfOwnerPassword is provided.
AllowFillingPdfFormFields
Boolean
optionalEnable filling PDF form fields. Only applicable when LockPdf is true or PdfOwnerPassword is provided.
Retention
Integer
optionalIf provided, the document will be deleted after the specified number of minutes.
AllowDownloadInPreview
Boolean
optionalControls the download button in the preview viewer. Does not affect the API-level downloadUrl.
AllowPrintInPreview
Boolean
optionalControls the print button in the preview viewer.

Example

cldfs.DocGenParams dcp = new cldfs.DocGenParams();
dcp.PdfViewPassword = 'admin';
dcp.PdfOwnerPassword = 'superadmin';
dcp.LockPdf = True;
dcp.AllowPdfPrinting = True;
dcp.AllowFillingPdfFormFields = True;
dcp.Retention = 5;