17.05.2014 Views

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 3.6 Parameters for the JavaScript formatting functions<br />

parameters<br />

nDec<br />

sepStyle<br />

negStyle<br />

strCurrency<br />

explanation and possible values<br />

Number of decimal places<br />

The decimal separator style:<br />

0 1,234.56<br />

1 1234.56<br />

2 1.234,56<br />

3 1234,56<br />

Emphasis used for negative numbers:<br />

0 Normal<br />

1 Use red text<br />

2 Show parenthesis<br />

3 both<br />

Currency string to use, e.g. \u20AC for the Euro sign<br />

bCurrency-<br />

Prepend<br />

false<br />

true<br />

do not prepend currency symbol<br />

prepend currency symbol<br />

cFormat<br />

tFormat<br />

psf<br />

A date format string. It may contain the following format placeholders, or any of the time formats listed<br />

below for tFormat:<br />

d day of month<br />

dd day of month with leading zero<br />

ddd abbreviated day of the week<br />

m month as number<br />

mm month as number with leading zero<br />

mmm abbreviated month name<br />

mmmm full month name<br />

yyyy year with four digits<br />

yy last two digits of year<br />

A time format string. It may contain the following format placeholders:<br />

h hour (0-12)<br />

hh hour with leading zero (0-12)<br />

H hour (0-24)<br />

HH hour with leading zero (0-24)<br />

M minutes<br />

MM minutes with leading zero<br />

s<br />

seconds<br />

ss seconds with leading zero<br />

t<br />

'a' or 'p'<br />

tt 'am' or 'pm'<br />

Describes a few additional formats:<br />

0 Zip Code<br />

1 Zip Code + 4<br />

2 Phone Number<br />

3 Social Security Number<br />

92 Chapter 3: Creating PDF Documents (Edition for <strong>COM</strong>, .<strong>NET</strong>, and REALbasic)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!