pdfjavascript-ag凯发旗舰厅



com.spire.pdf.actions
class pdfjavascript

java.lang.object
  extended by com.spire.pdf.actions.pdfjavascript

public class pdfjavascript
extends java.lang.object

the adobe built-in javascript


constructor summary
pdfjavascript()
           
 
method summary
static java.lang.string getdateformatstring(java.lang.string cformat)
          get a afdate_formatex string
static java.lang.string getdatekeystrokestring(java.lang.string cformat)
          get a afdate_keystrokeex string
static java.lang.string getnumberformatstring(int ndec, int sepstyle, int negstyle, int currstyle, java.lang.string strcurrency, boolean bcurrencyprepend)
          get a afnumber_format string
static java.lang.string getnumberkeystrokestring(int ndec, int sepstyle, int negstyle, int currstyle, java.lang.string strcurrency, boolean bcurrencyprepend)
          get a afnumber_keystroke string
static java.lang.string getpercentformatstring(int ndec, int sepstyle)
          get a afpercent_format string
static java.lang.string getpercentkeystrokestring(int ndec, int sepstyle)
          get a afpercent_keystroke string
static java.lang.string getrangevalidatestring(boolean bgreaterthan, float ngreaterthan, boolean blessthan, float nlessthan)
          get a afrange_validate string
static java.lang.string getsimplecalculatestring(java.lang.string cfunction, java.lang.string... cfields)
          get a afsimple_calculate string
static java.lang.string getspecialformatstring(int psf)
          get a afspecial_format string
static java.lang.string getspecialkeystrokestring(int psf)
          get a afspecial_format string
static java.lang.string gettimeformatstring(int ptf)
          get a aftime_format string
static java.lang.string gettimekeystrokestring(int ptf)
          get a aftime_keystroke string
 
constructor detail

pdfjavascript

public pdfjavascript()
method detail

getnumberformatstring

public static java.lang.string getnumberformatstring(int ndec,
                                                     int sepstyle,
                                                     int negstyle,
                                                     int currstyle,
                                                     java.lang.string strcurrency,
                                                     boolean bcurrencyprepend)
get a afnumber_format string
parameters:
ndec - the number of places after the decimal point
sepstyle - the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate.
negstyle - the formatting used for negative numbers: 0 = minusblack, 1 = red, 2 = parensblack, 3 = parensred
currstyle - the currency style - not used
strcurrency - the currency symbol
bcurrencyprepend - true to prepend the currency symbol; false to display on the end of the number

getnumberkeystrokestring

public static java.lang.string getnumberkeystrokestring(int ndec,
                                                        int sepstyle,
                                                        int negstyle,
                                                        int currstyle,
                                                        java.lang.string strcurrency,
                                                        boolean bcurrencyprepend)
get a afnumber_keystroke string
parameters:
ndec - the number of places after the decimal point
sepstyle - the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate.
negstyle - the formatting used for negative numbers: 0 = minusblack, 1 = red, 2 = parensblack, 3 = parensred
currstyle - the currency style - not used
strcurrency - the currency symbol
bcurrencyprepend - true to prepend the currency symbol; false to display on the end of the number

getrangevalidatestring

public static java.lang.string getrangevalidatestring(boolean bgreaterthan,
                                                      float ngreaterthan,
                                                      boolean blessthan,
                                                      float nlessthan)
get a afrange_validate string
parameters:
bgreaterthan - indicate the use of the greater than comparison
ngreaterthan - the value to be used in the greater than comparison
blessthan - indicate the use of the less than comparison
nlessthan - the value to be used in the less than comparison

getpercentformatstring

public static java.lang.string getpercentformatstring(int ndec,
                                                      int sepstyle)
get a afpercent_format string
parameters:
ndec - the number of places after the decimal point
sepstyle - the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate

getpercentkeystrokestring

public static java.lang.string getpercentkeystrokestring(int ndec,
                                                         int sepstyle)
get a afpercent_keystroke string
parameters:
ndec - the number of places after the decimal point
sepstyle - the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate

getdateformatstring

public static java.lang.string getdateformatstring(java.lang.string cformat)
get a afdate_formatex string
parameters:
cformat - must be one of: "m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yymm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:mm tt", "m/d/yy hh:mm"

getdatekeystrokestring

public static java.lang.string getdatekeystrokestring(java.lang.string cformat)
get a afdate_keystrokeex string
parameters:
cformat - must be one of: "m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yymm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:mm tt", "m/d/yy hh:mm"

gettimeformatstring

public static java.lang.string gettimeformatstring(int ptf)
get a aftime_format string
parameters:
ptf - the time format: 0 = 24hr_mm [ 14:30 ], 1 = 12hr_mm [ 2:30 pm ], 2 = 24hr_mm_ss [ 14:30:15 ], 3 = 12hr_mm_ss [ 2:30:15 pm ]

gettimekeystrokestring

public static java.lang.string gettimekeystrokestring(int ptf)
get a aftime_keystroke string
parameters:
ptf - the time format: 0 = 24hr_mm [ 14:30 ], 1 = 12hr_mm [ 2:30 pm ], 2 = 24hr_mm_ss [ 14:30:15 ], 3 = 12hr_mm_ss [ 2:30:15 pm ]

getspecialformatstring

public static java.lang.string getspecialformatstring(int psf)
get a afspecial_format string
parameters:
psf - the type of formatting to use:0 = zip code, 1 = zip 4, 2 = phone, 3 = ssn

getspecialkeystrokestring

public static java.lang.string getspecialkeystrokestring(int psf)
get a afspecial_format string
parameters:
psf - the type of formatting to use:0 = zip code, 1 = zip 4, 2 = phone, 3 = ssn

getsimplecalculatestring

public static java.lang.string getsimplecalculatestring(java.lang.string cfunction,
                                                        java.lang.string... cfields)
get a afsimple_calculate string
parameters:
cfunction - must be one of "avg", "sum", "prd", "min", "max"
cfields - the name list of the fields to use in the calculation


网站地图