Fields
Fields
| Parameter | Description | |
|---|---|---|
PdfViewPasswordString |
optional | Password required to open and view the generated PDF. |
PdfOwnerPasswordString |
optional | Owner (editor) password for the generated PDF. |
LockPdfBoolean |
optional | Disable PDF editing when true. |
AllowPdfPrintingBoolean |
optional | Enable PDF printing. Only applicable when LockPdf is true or PdfOwnerPassword is provided. |
AllowFillingPdfFormFieldsBoolean |
optional | Enable filling PDF form fields. Only applicable when LockPdf is true or PdfOwnerPassword is provided. |
RetentionInteger |
optional | If provided, the document will be deleted after the specified number of minutes. |
AllowDownloadInPreviewBoolean |
optional | Controls the download button in the preview viewer. Does not affect the API-level downloadUrl. |
AllowPrintInPreviewBoolean |
optional | Controls 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;