Package com.ebasetech.xi.api
Class PdfOptions
java.lang.Object
com.ebasetech.xi.api.PdfOptions
- All Implemented Interfaces:
java.io.Serializable
public class PdfOptions
extends java.lang.Object
implements java.io.Serializable
This class supplies a number of options used to generate a PDF. It is used as an argument
for
WebForm.generatePdf(PdfOptions)
.
- Since:
- V4.4
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PdfOptions()
-
Method Summary
Modifier and Type Method 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 thedisplay
option.boolean
isPopup()
Returns thepopup
option.boolean
isReportMode()
Returns thereport mode
option.boolean
isSave()
Returns thesave
option.void
setDisplay(boolean display)
Sets thedisplay
option.void
setFilePath(java.lang.String filePath)
Sets the file path used to save the document on the server when optionsave
is set to true.void
setPages(Page[] pages)
Sets the pages to be included in the PDF.void
setPopup(boolean popup)
When thedisplay
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 thepopup
option is set to true, this method can be used to specify a named window.void
setReportMode(boolean reportMode)
Sets thereport mode
option.void
setSave(boolean save)
Sets thesave
option.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PdfOptions
public PdfOptions()
-
-
Method Details
-
setDisplay
public void setDisplay(boolean display)Sets thedisplay
option. When true, the PDF is displayed to the user. The default is true.- Parameters:
display
-- Since:
- V4.4
-
setFilePath
public void setFilePath(java.lang.String filePath)Sets the file path used to save the document on the server when optionsave
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 theUFSSetup.properties
file. The filename is automatically generated and is constructed as follows: form name-file sequence number.pdf.- Parameters:
filePath
-- Since:
- V4.4
-
setPages
Sets the pages to be included in the PDF. The default, if this method is not called, is to include the current page.- Parameters:
pages
-- Since:
- V4.4
-
setPopup
public void setPopup(boolean popup)When thedisplay
option is set to true, this option controls whether or not the PDF is displayed to the user in a popup window. When true, methodsetPopupWindowName(String)
can be used to specify a named window. The default for this option is true.- Parameters:
popup
-- Since:
- V4.4
-
setPopupWindowName
public void setPopupWindowName(java.lang.String popupWindowName)When thepopup
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.- Parameters:
popupWindowName
-- Since:
- V4.4
-
setReportMode
public void setReportMode(boolean reportMode)Sets thereport 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.
- Parameters:
reportMode
-- Since:
- V4.4
-
setSave
public void setSave(boolean save)Sets thesave
option. When true, the PDF is saved on the server. The file path is specified with methodsetFilePath(String)
. The default for this option is false.- Parameters:
save
-- Since:
- V4.4
-
isDisplay
public boolean isDisplay()Returns thedisplay
option. SeesetDisplay(boolean)
.- Returns:
- display
-
isSave
public boolean isSave()Returns thesave
option. SeesetSave(boolean)
.- Returns:
- save
-
isPopup
public boolean isPopup()Returns thepopup
option. SeesetPopup(boolean)
.- Returns:
- popup
-
getPages
Returns the pages to be printed. SeesetPages(Page[])
.- Returns:
- pages
-
getFilePath
public java.lang.String getFilePath()Returns the file path where the PDF will be saved. SeesetFilePath(String)
.- Returns:
- filePath
-
getPopupWindowName
public java.lang.String getPopupWindowName()Returns the popup window name. SeesetPopupWindowName(String)
.- Returns:
- popupWindowName
-
isReportMode
public boolean isReportMode()Returns thereport mode
option. SeesetReportMode(boolean)
.- Returns:
- reportMode
-