Package com.adobe.fd.forms.api
Class PDFFormRenderOptions
- java.lang.Object
-
- com.adobe.fd.forms.api.PDFFormRenderOptions
-
public class PDFFormRenderOptions extends java.lang.ObjectRepresents a set of options configurable in renderPDFForm operation of FormsService
-
-
Constructor Summary
Constructors Constructor Description PDFFormRenderOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcrobatVersiongetAcrobatVersion()get the get acrobat version of generated PDF FormCacheStrategygetCacheStrategy()Return the caching strategy to usejava.lang.StringgetContentRoot()java.lang.StringgetDebugDir()booleangetEmbedFonts()java.lang.StringgetLocale()RenderAtClientgetRenderAtClient()java.util.List<java.lang.String>getSubmitUrls()booleangetTaggedPDF()get if generated PDF Form is taggedDocumentgetXci()voidsetAcrobatVersion(AcrobatVersion acrobatVersion)set version of acrobat for which PDF Form should be generatedvoidsetCacheStrategy(CacheStrategy strategy)set the caching strategy to use for PDF Forms rendition one of the enums inCacheStrategydefault isCacheStrategy.AGGRESSIVEAs Caching Strategy can also be configure via Config Manager When value specified using Config Manager is different from the one specified via this API then final Caching Strategy is calculated as follows Value in Config ManagerValue via APIFinal Value AggressiveConservativeConservative AggressiveNoneNone ConservativeAggressiveConservative ConservativeNoneNone NoneAggressiveNone NoneConservativeNonevoidsetContentRoot(java.lang.String url)set content urlvoidsetDebugDir(java.lang.String debugDir)Sets the location of directory in which debug dumps are created; Debug dumps are created only if an existing directory is set in optionsvoidsetEmbedFonts(boolean embedFonts)Enables font embedding in output PDF Form document whentrueis passed as argumentvoidsetLocale(java.lang.String locale)Set locale to use for renderingvoidsetRenderAtClient(RenderAtClient renderAtClient)this option is used to generate static pdf form passing RenderAtClient#NO to this method causes form to be pre rendered on the server passing RenderAtClient#AUTO to this method causes to use value set using Form Designer default is RenderAtClient#YESvoidsetSubmitUrls(java.util.List<java.lang.String> urls)set submit urlvoidsetTaggedPDF(boolean isTagged)set if pdf form should be taggedvoidsetXci(Document xci)allows setting a custom xci document which provides low level access for XFA to PDF conversion.
-
-
-
Method Detail
-
getRenderAtClient
public RenderAtClient getRenderAtClient()
-
setRenderAtClient
public void setRenderAtClient(RenderAtClient renderAtClient)
this option is used to generate static pdf form passing RenderAtClient#NO to this method causes form to be pre rendered on the server passing RenderAtClient#AUTO to this method causes to use value set using Form Designer default is RenderAtClient#YES- Parameters:
renderAtClient-
-
getCacheStrategy
public CacheStrategy getCacheStrategy()
Return the caching strategy to use- Returns:
- currently set CacheStrategy
-
setCacheStrategy
public void setCacheStrategy(CacheStrategy strategy)
set the caching strategy to use for PDF Forms rendition one of the enums inCacheStrategydefault isCacheStrategy.AGGRESSIVEAs Caching Strategy can also be configure via Config Manager When value specified using Config Manager is different from the one specified via this API then final Caching Strategy is calculated as followsValue in Config Manager Value via API Final Value Aggressive Conservative Conservative Aggressive None None Conservative Aggressive Conservative Conservative None None None Aggressive None None Conservative None - Parameters:
strategy-
-
getContentRoot
public java.lang.String getContentRoot()
-
setContentRoot
public void setContentRoot(java.lang.String url)
set content url- Parameters:
url-
-
getTaggedPDF
public boolean getTaggedPDF()
get if generated PDF Form is tagged- Returns:
- current setting of taggedPDF
-
setTaggedPDF
public void setTaggedPDF(boolean isTagged)
set if pdf form should be tagged- Parameters:
isTagged-
-
getAcrobatVersion
public AcrobatVersion getAcrobatVersion()
get the get acrobat version of generated PDF Form- Returns:
- current accrobat version
-
setAcrobatVersion
public void setAcrobatVersion(AcrobatVersion acrobatVersion)
set version of acrobat for which PDF Form should be generated- Parameters:
acrobatVersion-
-
getLocale
public java.lang.String getLocale()
-
setLocale
public void setLocale(java.lang.String locale)
Set locale to use for rendering- Parameters:
locale-
-
getSubmitUrls
public java.util.List<java.lang.String> getSubmitUrls()
-
setSubmitUrls
public void setSubmitUrls(java.util.List<java.lang.String> urls)
set submit url- Parameters:
urls-
-
getXci
public Document getXci()
-
setXci
public void setXci(Document xci)
allows setting a custom xci document which provides low level access for XFA to PDF conversion. Options specified in XCI document override those specified via API- Parameters:
xci-
-
getDebugDir
public java.lang.String getDebugDir()
-
setDebugDir
public void setDebugDir(java.lang.String debugDir)
Sets the location of directory in which debug dumps are created; Debug dumps are created only if an existing directory is set in options- Parameters:
debugDir-
-
getEmbedFonts
public boolean getEmbedFonts()
-
setEmbedFonts
public void setEmbedFonts(boolean embedFonts)
Enables font embedding in output PDF Form document whentrueis passed as argument- Parameters:
embedFonts-
-
-