|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.formsservice.client.PDFFormRenderSpec
public class PDFFormRenderSpec
Enables you to define run-time options that control how the Forms service renders PDF forms.
By setting members of this class, you can perform tasks such as caching forms to improve
the performance of the Forms service and rendering forms on a client.
An object of this type is passed to the following
FormsServiceClient
methods:
To see an object of this type used in a code example, see the Rendering an interactive PDF form using the Java API quick start in Programming with LiveCycle ES4.
Constructor Summary | |
---|---|
PDFFormRenderSpec()
A standard constructor that does not set options. |
|
PDFFormRenderSpec(java.lang.Boolean cacheEnabled,
PDFVersion pDFVersion,
boolean taggedPDF,
boolean linearizedPDF,
java.lang.String seedPDF,
AcrobatVersion acrobatVersion,
java.lang.String xCIURI,
java.lang.String charset,
RenderAtClient renderAtClient,
java.lang.String locale,
boolean standAlone,
FormModel formModel,
boolean xMLData)
A constructor that enables you to set all options. |
Method Summary | |
---|---|
AcrobatVersion |
getAcrobatVersion()
Gets the Acrobat version that is required to view the PDF form that the Forms service renders. |
java.lang.Boolean |
getCacheEnabled()
Specifies whether the Forms service caches a PDF form to boost performance. |
java.lang.String |
getCharset()
Gets the character set used to encode the output byte stream. |
FormModel |
getFormModel()
Gets the location to where the form is processed. |
java.lang.Boolean |
getGenerateServerAppearance()
Specifies whether the generate server appearance is set. |
java.lang.String |
getLocale()
Gets the locale value that is used by the Forms service to set the default locale for PDF Form fields. |
PDFVersion |
getPDFVersion()
Deprecated. Use getAcrobatVersion() |
RenderAtClient |
getRenderAtClient()
Enables the delivery of PDF content by using the the client-side rendering capability of Acrobat 7.0 or later. |
java.lang.String |
getSeedPDF()
Gets the seed PDF document value that specifies an initial PDF document that is used in a PDF transformation to optimize delivery. |
java.lang.String |
getXCIURI()
Gets the URI location of the XCI file used for rendering. |
java.lang.Boolean |
isCacheEnabled()
Specifies whether the Forms service caches a PDF form to boost performance. |
boolean |
isClientCache()
Specifies whether the form is cached on the client device. |
boolean |
isDebugEnabled()
Specifies whether the debugEnabled option is enabled. |
boolean |
isEnableViewerPreferences()
This returns the value that specifies whether the PDF Print Options specified during template design would be used or not. |
boolean |
isLinearizedPDF()
Determines whether the Forms service produces a linearized PDF form (optimized for web applications). |
boolean |
isLogPerformance()
Returns true if forms performance logging has been enabled for this request |
boolean |
isStandAlone()
Specifies if the standAlone option is set to true , which results in a
form being rendered without state information. |
boolean |
isTaggedPDF()
Retrieves the value of the taggedPDF option, which specifies the use of tagged PDF files to output forms
to make them
accessible with the help of screen readers. |
boolean |
isXMLData()
Returns a Boolean value that represents the xmlData option that
specifies whether the Form service produces the form's XML data based on its current
processing state. |
void |
setAcrobatVersion(AcrobatVersion acrobatVersion)
Sets the Acrobat version that is required to view the PDF form that the Forms service renders. |
void |
setCacheEnabled(java.lang.Boolean cacheEnabled)
Instructs the Forms service to cache a form in order to improve performance. |
void |
setCharset(java.lang.String charset)
Sets the character set used to encode the output byte stream. |
void |
setClientCache(boolean clientCache)
Sets the client cache option resulting in the form being cached on the client device. |
void |
setDebugEnabled(boolean debugEnabled)
Specifies whether the debugEnabled option is enabled. |
void |
setEnableViewerPreferences(boolean enableViewerPreferences)
This sets the value that specifies whether the PDF Print Options specified during template design would be used or not. |
void |
setFormModel(FormModel formModel)
Sets the location to where the form and its scripts are processed. |
void |
setGenerateServerAppearance(java.lang.Boolean generateServerAppearance)
Sets the generate server appearance option that specifies whether the server appearances are generated. |
void |
setLinearizedPDF(boolean linearizedPDF)
Sets the linearizedPDF property that results in the Forms service
producing a linearized PDF form. |
void |
setLocale(java.lang.String locale)
Sets the default locale for PDF Form fields. |
void |
setLogPerformance(boolean logPerformance)
Used for setting performance logging for this request |
void |
setPDFVersion(PDFVersion pDFVersion)
Deprecated. Use setAcrobatVersion() |
void |
setRenderAtClient(RenderAtClient renderAtClient)
Enables the delivery of PDF content by using the the client-side rendering capability of Acrobat 7.0 or later. |
void |
setSeedPDF(java.lang.String seedPDF)
Sets the seed PDF value that specifies an initial PDF document that is used in a PDF transformation to optimize delivery. |
void |
setStandAlone(boolean standAlone)
Sets the standAlone option. |
void |
setTaggedPDF(boolean taggedPDF)
Sets the taggedPDF option that results in the
Forms service creating a tagged PDF form. |
void |
setXCIURI(java.lang.String xCIURI)
Sets the URI location of the XCI file used for rendering. |
void |
setXMLData(boolean xMLData)
Sets the xmlData option that instructs the Forms service to produce
the form's XML data based on its current processing state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFFormRenderSpec()
public PDFFormRenderSpec(java.lang.Boolean cacheEnabled, PDFVersion pDFVersion, boolean taggedPDF, boolean linearizedPDF, java.lang.String seedPDF, AcrobatVersion acrobatVersion, java.lang.String xCIURI, java.lang.String charset, RenderAtClient renderAtClient, java.lang.String locale, boolean standAlone, FormModel formModel, boolean xMLData)
Method Detail |
---|
public boolean isLogPerformance()
public void setLogPerformance(boolean logPerformance)
logPerformance
- A Boolean value that specifies whether to log performance or not.public java.lang.Boolean isCacheEnabled()
true
means that the form is cached.
setCacheEnabled()
public java.lang.Boolean getCacheEnabled()
true
means that the form is cached.
setCacheEnabled()
public boolean isEnableViewerPreferences()
public void setEnableViewerPreferences(boolean enableViewerPreferences)
enablePrintOptions
- A Boolean value that specifies whether to enable Viewer Preferences or not.public void setCacheEnabled(java.lang.Boolean cacheEnabled)
cacheEnabled
- A Boolean value that specifies whether to cache a form. The value true
means that a form is cached.public PDFVersion getPDFVersion()
PDFVersion
object that specifies the PDF version.PDFVersion
public void setPDFVersion(PDFVersion pDFVersion)
pDFVersion
- A PDFVersion
object that specifies the PDF version to set.PDFVersion
public boolean isTaggedPDF()
taggedPDF
option, which specifies the use of tagged PDF files to output forms
to make them
accessible with the help of screen readers.
Tagged PDF files are not supported in PDF versions prior to version 1.4. The following values are valid:
0
- false1
- true
taggedPDF
option.setTaggedPDF()
public void setTaggedPDF(boolean taggedPDF)
taggedPDF
option that results in the
Forms service creating a tagged PDF form. A tagged PDF form
defines a set of standard structure types and attributes that allow page content
(text, graphics, and images) to be extracted and reused for other purposes.
It is intended for use by tools that perform the following types of operations:
Tagged PDF files are not supported in PDF versions prior to version 1.4. For more information about tagged PDF documents, see the PDF Reference guide.
taggedPDF
- A Boolean value that when set to true
, results in the Forms
service producing a tagged PDF form.public boolean isLinearizedPDF()
public void setLinearizedPDF(boolean linearizedPDF)
linearizedPDF
property that results in the Forms service
producing a linearized PDF form. A linearized PDF document is
organized to enable incremental access in a network
environment. For example, a linearized PDF document can be displayed
in a web browser before the entire PDF document is downloaded.
For more information about a linearized PDF document, see the PDF Reference guide.
linearizedPDF
- A Boolean value that when set to true, results in the Forms service producing a linearized PDF form.public java.lang.String getSeedPDF()
PDFForm
transformations.
setSeedPDF()
public void setSeedPDF(java.lang.String seedPDF)
PDFForm
transformations.
seedPDF
- The name and location of the PDF document that represents the seed PDF document.public AcrobatVersion getAcrobatVersion()
AcrobatVersion
object that specifies the
Acrobat version that is required to view the PDF form that the Forms service renders.public void setAcrobatVersion(AcrobatVersion acrobatVersion)
acrobatVersion
- An AcrobatVersion
object that specifies the
Acrobat version that is required to view the PDF form that the Forms service renders.public java.lang.String getXCIURI()
public void setXCIURI(java.lang.String xCIURI)
xCIURI
- The URI location of the XCI file.public java.lang.String getCharset()
java.nio.charset
package for HTML transformations.
setCharset()
public void setCharset(java.lang.String charset)
java.nio.charset
package for HTML transformations.
charset
- The character set used to encode the output byte stream.public RenderAtClient getRenderAtClient()
PDFForm
,
or PDFMerge
transformations.
renderAtClient
value.setRenderAtClient()
public void setRenderAtClient(RenderAtClient renderAtClient)
PDFForm
,
or PDFMerge
transformations. When set to auto
and AcrobatVersion
is set to acrobat7.0.5
(or later),
then a form is rendered to a client once,
which improves the performance of the Form service.
The rendered form behaves as a non-interactive form.
renderAtClient
- The renderAtClient
value to set.public java.lang.String getLocale()
setLocale()
public void setLocale(java.lang.String locale)
locale
- The locale value to set. The following table lists valid values:
Locale | Description |
---|---|
zh_CN | Chinese, Simplified (P.R.C.) |
zh_TW | Chinese, Traditional (Taiwan) |
zh_HK | Chinese, Traditional with HKSCS-2001 Extensions (Hong Kong) |
hr_HR | Croatian (Republic of Croatia) |
cs_CZ | Czech (Czech Republic) |
da_DK | Danish (Denmark) |
nl_BE | Dutch (Belgium) |
nl_NL | Dutch (Netherlands) |
en_AU | English (Australia) |
en_CA | English (Canada) |
en_IN | English (India) |
en_IE | English (Ireland) |
en_NZ | English (New Zealand) |
en_ZA | English (South Africa) |
en_GB | English (United Kingdom) |
en_EN | English (United Kingdom, Euro Currency) |
en_US | English (United States) |
fi_FI | Finnish (Finland) |
fr_BE | French (Belgium) |
fr_CA | French (Canada) |
fr_FR | French (France) |
fr_LU | French (Luxembourg) |
fr_CH | French (Switzerland) |
de_AT | German (Austria) |
de_DE | German (Germany) |
de_LU | German (Luxembourg) |
de_CH | German (Switzerland) |
el_GR | Greek (Greece) |
hu_HU | Hungarian (Hungary) |
it_IT | Italian (Italy) |
it_CH | Italian (Switzerland) |
ja_JP | Japanese (Japan) |
ko_KR | Korean (Korea) |
no_NO | Norwegian (Norway) |
no_NO_NY | Norwegian (Norway, Nynorsk) |
pl_PL | Polish (Poland) |
pt_BR | Portuguese (Brazil) |
pt_PT | Portuguese (Portugal) |
ro_RO | Romanian (Romania) |
sh_BA | Serbo-Croatian (Bosnia and Herzegovina) |
sh_HR | Serbo-Croatian (Croatia) |
sh_CS | Serbo-Croatian (Republic of Serbia and Montenegro) |
sk_SK | Slovak (Slovak Republic) |
es_AR | Spanish (Argentina) |
da_DK | Spanish (Bolivia) |
es_CL | Spanish (Chile) |
es_CO | Spanish (Costa Rica) |
es_DO | Spanish (Dominican Republic) |
es_EC | Spanish (Ecuador) |
es_SV | Spanish (El Salvador) |
es_GT | Spanish (Guatemala) |
es_HN | Spanish (Honduras) |
es_MX | Spanish (Mexico) |
es_NI | Spanish (Nicaragua) |
es_PA | Spanish (Panama) |
es_PY | Spanish (Paraguay) |
es_PE | Spanish (Peru) |
es_PR | Spanish (Puerto Rico) |
es_ES | Spanish (Spain) |
es_UY | Spanish (Uruguay |
es_VE | Spanish (Venezuela) |
sv_SE | Swedish (Sweden) |
tr_TR | Turkish (Turkey) |
public boolean isStandAlone()
standAlone
option is set to true
, which results in a
form being rendered without state information.
State information is used to render an interactive form to an end user who then enters
information into the form and submits the form back to the Form service.
The Form service then performs
a calculation operation and renders the form back to the user with the results
displayed in the form.
In an HTML transformation, javascript is embedded instead of linked content so that it can be used
while disconnected from the Form service. Set this option to true
if you are using the Form service for
rendering purposes and are running scripts that are located within the form
while disconnected from the Form service.
standAlone
option.setStandAlone()
public void setStandAlone(boolean standAlone)
standAlone
option. If set to true
, a
form is rendered without state information.
State information is used to render an interactive form to an end user who then enters
information into the form and submits the form back to the Form service. The Form service then performs
a calculation operation and renders the form back to the user with the results displayed in the form.
In an HTML transformation, javascript is embedded instead of linked content so that it can be used while
disconnected from the Form service. Set this option to true
if you are using the Form service for
rendering purposes and are running scripts that are located within the form while disconnected from the
Form service.
standAlone
- The value of standAlone
option.public FormModel getFormModel()
setFormModel()
public void setFormModel(FormModel formModel)
FormModel.client
, the form is passed to the client device without processing.
A form design contains a setting named runAt
that controls where a script is processed. If these two values conflict,
(for example, the runAt
setting is client and this setting is FormModel.server
),
then the form may not render properly and a warning is entered into log file that belong to the J2EE
application server hosting LiveCycle.
formModel
- A FormModel
enum value that specifies the location to where the form and its scripts are processed.public boolean isXMLData()
xmlData
option that
specifies whether the Form service produces the form's XML data based on its current
processing state.
xmlData
option is set.setXMLData()
public void setXMLData(boolean xMLData)
xmlData
option that instructs the Forms service to produce
the form's XML data based on its current processing state.
xMLData
- A Boolean value that represents the xmlData
option.public boolean isDebugEnabled()
debugEnabled
option is enabled.
This option provides more information in the J2EE application server's log file.
debugEnabled
option is enabled.public void setDebugEnabled(boolean debugEnabled)
debugEnabled
option is enabled.
This option provides more information in the J2EE application server's log file.
debugEnabled
- A Boolean value that specifies whether the debugEnabled
option is enabled.public boolean isClientCache()
public void setClientCache(boolean clientCache)
clientCache
- A Boolean value that specifies if the form is cached on the client device.public java.lang.Boolean getGenerateServerAppearance()
public void setGenerateServerAppearance(java.lang.Boolean generateServerAppearance)
true
instructs the Forms service to generate server appearance.
generateServerAppearance
- A boolean that sets the generate server appearance option.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |