public interface PrintResource extends Resource
PrintResource
interface represents a Printing Resource. A Printing Resource can be used to generate
a PDF document based on an Adobe PDF Form and populate the document with data from Ebase form fields.
Modifier and Type | Method and Description |
---|---|
void |
print()
Builds a PDF document using the PDF form specified in the Print Resource and
transfers all values from mapped form fields into the document.
|
void |
print(boolean save,
boolean noDisplay)
Builds a PDF document using the PDF form specified in the Print Resource and
transfers all values from mapped form fields into the document.
|
getElementName, getElementType
void print() throws com.ebasetech.xi.exceptions.FormRuntimeException
com.ebasetech.xi.exceptions.FormRuntimeException
- if any error occurs during executionprint(boolean, boolean)
,
WebForm.generatePdf(PdfOptions)
void print(boolean save, boolean noDisplay) throws com.ebasetech.xi.exceptions.FormRuntimeException
save
- the file is saved on the server using a name generated as follows: the directory is specified with
property Ufs.pdfDirectoryName
in the UFSSetup.properties
file.
The filename is automatically generated and is constructed as follows:
form name-file sequence number.pdf.noDisplay
- when true, the document is not displayed to the usercom.ebasetech.xi.exceptions.FormRuntimeException
- if any error occurs during executionprint()
,
WebForm.generatePdf(PdfOptions)