public class PdfOptions
extends java.lang.Object
implements java.io.Serializable
WebForm.generatePdf(PdfOptions)
.
Constructor and Description |
---|
PdfOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilePath()
Returns the file path where the PDF will be saved.
|
Page[] |
getPages()
Returns the pages to be printed.
|
java.lang.String |
getPopupWindowName()
Returns the popup window name.
|
boolean |
isDisplay()
Returns the
display option. |
boolean |
isPopup()
Returns the
popup option. |
boolean |
isReportMode()
Returns the
report mode option. |
boolean |
isSave()
Returns the
save option. |
void |
setDisplay(boolean display)
Sets the
display option. |
void |
setFilePath(java.lang.String filePath)
Sets the file path used to save the document on the server when option
save is set to true. |
void |
setPages(Page[] pages)
Sets the pages to be included in the PDF.
|
void |
setPopup(boolean popup)
When the
display option is set to true, this option controls whether or not the PDF is displayed to the user in a popup window. |
void |
setPopupWindowName(java.lang.String popupWindowName)
When the
popup option is set to true, this method can be used to specify a named window. |
void |
setReportMode(boolean reportMode)
Sets the
report mode option. |
void |
setSave(boolean save)
Sets the
save option. |
public void setDisplay(boolean display)
display
option. When true, the PDF is displayed to the user. The default is true.display
- public void setFilePath(java.lang.String filePath)
save
is set to true.
This can be either a relative or absolute file path.
If not specified, a generated name is used 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.
filePath
- public void setPages(Page[] pages)
pages
- public void setPopup(boolean popup)
display
option is set to true, this option controls whether or not the PDF is displayed to the user in a popup window.
When true, method setPopupWindowName(String)
can be used to specify a named window. The default for this option is true.popup
- public void setPopupWindowName(java.lang.String popupWindowName)
popup
option is set to true, this method can be used to specify a named window.
There is no default default for this option. If omitted, each PDF will appear in a new popup window.popupWindowName
- public void setReportMode(boolean reportMode)
report mode
option. When true, all input text and textarea fields, including both form fields and table columns,
are displayed as if they are display only. This means that the border surrounding each input element is removed, and also
that all data is shown - the page expands downwards to accommodate this.
The default for this option is true.
reportMode
- public void setSave(boolean save)
save
option. When true, the PDF is saved on the server.
The file path is specified with method setFilePath(String)
.
The default for this option is false.save
- public boolean isDisplay()
display
option. See setDisplay(boolean)
.public boolean isSave()
save
option. See setSave(boolean)
.public boolean isPopup()
popup
option. See setPopup(boolean)
.public Page[] getPages()
setPages(Page[])
.public java.lang.String getFilePath()
setFilePath(String)
.public java.lang.String getPopupWindowName()
setPopupWindowName(String)
.public boolean isReportMode()
report mode
option. See setReportMode(boolean)
.