BBjForm::savePDF
Description
In BBj 26.0 and higher, these methods save the current BBjForm as a PDF file. They save the form content directly to a PDF document based on the form’s state at the time the method is executed.
These methods support creating either a standard PDF file or a password-protected PDF file. When security is applied, the generated PDF can include passwords that control access to the document, such as requiring a password to open the file or restricting editing permissions. This allows applications to generate PDF output from a form and optionally apply access restrictions to the resulting document. See: getBBjPDFForm
Syntax
| void | Method |
|---|---|
| void | savePDF(string p_pdf) |
| void | savePDF(string p_pdf, string p_editPassword, string p_openPassword) |
Parameter
| Variable | Description |
|---|---|
| p_pdf | The path and file name of the PDF file to create from the current BBjForm. |
| p_editPassword | The path and file name of the PDF file to create from the current BBjForm. |
| p_openPassword | The user password required to open the generated PDF file. |
Return Value
None.
Remarks
A BBjException is thrown if the PDF file cannot be created or written to the specified file path.
See Also
BBj Object Creation and Assignment
Advantage Article: Dishing up Forms
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.