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.StringgetFilePath()Returns the file path where the PDF will be saved.Page[]getPages()Returns the pages to be printed.java.lang.StringgetPopupWindowName()Returns the popup window name.booleanisDisplay()Returns thedisplayoption.booleanisPopup()Returns thepopupoption.booleanisReportMode()Returns thereport modeoption.booleanisSave()Returns thesaveoption.voidsetDisplay(boolean display)Sets thedisplayoption.voidsetFilePath(java.lang.String filePath)Sets the file path used to save the document on the server when optionsaveis set to true.voidsetPages(Page[] pages)Sets the pages to be included in the PDF.voidsetPopup(boolean popup)When thedisplayoption is set to true, this option controls whether or not the PDF is displayed to the user in a popup window.voidsetPopupWindowName(java.lang.String popupWindowName)When thepopupoption is set to true, this method can be used to specify a named window.voidsetReportMode(boolean reportMode)Sets thereport modeoption.voidsetSave(boolean save)Sets thesaveoption.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 thedisplayoption. 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 optionsaveis 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.pdfDirectoryNamein theUFSSetup.propertiesfile. 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 thedisplayoption 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 thepopupoption 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 modeoption. 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 thesaveoption. 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 thedisplayoption. SeesetDisplay(boolean).- Returns:
- display
-
isSave
public boolean isSave()Returns thesaveoption. SeesetSave(boolean).- Returns:
- save
-
isPopup
public boolean isPopup()Returns thepopupoption. 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 modeoption. SeesetReportMode(boolean).- Returns:
- reportMode
-