|
|
This only occurs when formatting a table cell.
|
|
|
This only occurs when formatting a table cell.
|
|
blockHierarchy
|
|
|
Access
|
read-only
|
|
Returns
|
fBlockPos[]
|
|
counters
|
|
|
Access
|
read-only
|
|
Returns
|
fIntArray
|
|
currentBlock
|
|
|
Access
|
read-only
|
|
Returns
|
fBlockResolved
|
|
currentBlockRegion
|
|
|
Access
|
read-only
|
|
Returns
|
fBlockResolvedRegion
|
|
currentBlockRow
|
|
|
Access
|
read-only
|
|
Returns
|
fBlockResolvedRow
|
|
currentFormat
|
|
|
Access
|
read-only
|
|
Returns
|
fFormat
|
|
currentPage
|
|
|
Access
|
read-only
|
|
Returns
|
fPage
|
|
currentParagraph
|
|
|
Access
|
read-only
|
|
Returns
|
fParagraph
|
|
currentState
|
|
|
Access
|
read-only
|
|
Returns
|
fFormatState
|
|
currentStream
|
|
|
Access
|
read-only
|
|
Returns
|
fFormatPos
|
|
currentStyle
|
|
|
Access
|
read-only
|
|
Returns
|
fStyle
|
|
currentTable
|
|
|
Access
|
read-only
|
|
Returns
|
fTableResolved
|
|
currentTableCell
|
|
|
Access
|
read-only
|
|
Returns
|
fTableResolvedCell
|
|
currentTableRow
|
|
|
Access
|
read-only
|
|
Returns
|
fTableResolvedRow
|
|
currentTeX
|
|
|
Access
|
read-only
|
|
Returns
|
fTeX
|
|
currentTypeface
|
|
|
Access
|
read-only
|
|
Returns
|
fTypeface
|
|
currentXMLNode
|
|
|
Access
|
read-only
|
|
Returns
|
fxNode
|
|
defaultParagraph
|
|
|
Access
|
read-only
|
|
Returns
|
fParagraph
|
|
defaultStyle
|
|
|
Access
|
read-only
|
|
Returns
|
fStyle
|
|
defaultTeX
|
|
|
Access
|
read-only
|
|
Returns
|
fTeX
|
|
errorLogCountsFatal
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
errorLogCountsInformation
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
errorLogCountsNonFatal
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
errorLogCountsWarning
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
fish
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray[]
|
|
formatTextMode
|
|
|
Access
|
read-only
|
|
Returns
|
int
|
|
streamHierarchy
|
|
|
Access
|
read-only
|
|
Returns
|
fArray
|
|
stringCounters
|
|
|
Access
|
read-only
|
|
Returns
|
fStringArray
|
|
tableHierarchy
|
|
|
Access
|
read-only
|
|
Returns
|
fTablePos[]
|
|
accoladeEnd level
|
|
|
Parameters
|
int level
The level containing the accolade to end.
|
|
Returns
|
void. None.
|
|
accoladeStart accolade level percent offset drawMode drawLevel preventRepeat onlyTop
|
|
|
Parameters
|
fAccolade accolade
The object containing the accolade settings to use. This can either be an fAccolade or fAccoladeInline object, as required.
int level
The level on which to start the accolade.
int percent
The percentage of the accolade to display.
int offset
The field percentage to use, overriding the value in the accolade top location.
int drawMode
When to draw the accolade. Value is one of fAccolade-AccoladeDrawMode.
int drawLevel
Where to draw the accolade relative to other text and rules. Value is one of fAccolade-AccoladeDrawLevel.
boolean preventRepeat
If true, the accolade will not repeat when flowing into a new column.
boolean onlyTop
If true, the accolade will only start if it is at the top of the frame.
|
|
Returns
|
void. None.
|
|
addHorizontalKern amount
|
|
|
Parameters
|
fLength amount
The amount of horizontal kerning to be added.
|
|
Returns
|
void. This method does not return a value.
|
|
addImage image place scaleX scaleXSize scaleY scaleYSize bestFitX bestFitY useBaseline forceMinDPI opacity
|
|
|
Parameters
|
fTag image
The image to use. This can either be an fRaster or an fGraphic object.
int place
Where to place the image. Value is one of fFormatting.ImagePlaces.
int scaleX
The method to use when scaling the image horizontally. Value is one of fFormatting.ImageScale
fLength scaleXSize
The size to use when scaleX is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int scaleY
The method to use when scaling the image vertically. Value is one of fFormatting.ImageScale
fLength scaleYSize
The size to use when scaleY is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int bestFitX
The method to use when scaling the image horizontally. If either this property or bestFitY is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
int bestFitY
The method to use when scaling the image vertically. If either this property or bestFitX is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
boolean useBaseline
If true, the image will sit on the baseline, otherwise it will be centred on the baseline. This property is ignored if inline is false.
boolean forceMinDPI
If true, any image with lower than 10 DPI will be adjusted to 96 DPI.
float opacity
The percentage opacity to draw this image on supported output drivers.
|
|
Returns
|
void. None.
|
|
addMedia image place scaleX scaleXSize scaleY scaleYSize bestFitX bestFitY useBaseline pdfName poster activation animationCount animationSpeed animationStyle
|
|
|
Parameters
|
fTag image
The media file to use. This must be an fRaster object.
int place
Where to place the player. Value is one of fFormatting.ImagePlaces.
int scaleX
The method to use when scaling the player horizontally. Value is one of fFormatting.ImageScale
fLength scaleXSize
The size to use when scaleX is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int scaleY
The method to use when scaling the player vertically. Value is one of fFormatting.ImageScale
fLength scaleYSize
The size to use when scaleY is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int bestFitX
The method to use when scaling the player horizontally. If either this property or bestFitY is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
int bestFitY
The method to use when scaling the player vertically. If either this property or bestFitX is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
boolean useBaseline
If true, the player will sit on the baseline, otherwise it will be centred on the baseline. This property is ignored if inline is false.
String pdfName
The name for this object when outputting it to PDF.
fRaster poster
The image to display when the media object is not active in the PDF.
int activation
When to activate or deactivate the media object in the PDF. Possible values are in fFormatting-PDFActivationFlags.
int animationCount
The number of times to play the animation if supported by the media, or a negative value to play the animation indefinitely.
float animationSpeed
The speed multiplier for the animation if supported by the media. A value greater than 1 will speed the animation up, a value less than 1 will slow it down.
int animationStyle
The animation playback style to use if supported by the media. Possible values are in fFormatting-PDFAnimationStyles.
|
|
Returns
|
void. None.
|
|
addPDFFormItem pdfFormItem place width height useBaseline pdfName pdfLayer
|
|
|
Parameters
|
fPDFFormItem pdfFormItem
The PDF Form item to place.
int place
Where to place the PDF Form item. Value is one of fFormatting.ImagePlaces.
fLength width
The width of the PDF Form item.
fLength height
The height of the PDF Form item.
boolean useBaseline
If true, the PDF Form item will sit on the baseline, otherwise it will be centred on the baseline. This property is ignored if inline is false.
String pdfName
The name for this object when outputting it to PDF. This parameter will override the fPDFFormItem-pdfName property, if specified.
fPDFLayer pdfLayer
The PDF layer to place the PDF Form item on. This parameter will override the fPDFFormItem-pdfLayer property, if specified.
|
|
Returns
|
void. None.
|
|
addReference reference
|
|
|
Parameters
|
Object reference
The reference object to process.
|
|
Returns
|
void. None.
|
|
addU3D image place scaleX scaleXSize scaleY scaleYSize bestFitX bestFitY useBaseline viewName pdfName animationCount animationSpeed animationStyle script
|
|
|
Parameters
|
fTag image
The U3D image to use. This must be an fRaster object.
int place
Where to place the image. Value is one of fFormatting.ImagePlaces.
int scaleX
The method to use when scaling the image horizontally. Value is one of fFormatting.ImageScale
fLength scaleXSize
The size to use when scaleX is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int scaleY
The method to use when scaling the image vertically. Value is one of fFormatting.ImageScale
fLength scaleYSize
The size to use when scaleY is set to SCALE_ABSOLUTE, SCALE_DOT, SCALE_SHRINK or SCALE_ENLARGE, or the percentage to use when set to SCALE_PERCENT.
int bestFitX
The method to use when scaling the image horizontally. If either this property or bestFitY is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
int bestFitY
The method to use when scaling the image vertically. If either this property or bestFitX is set to BESTFIT_NONE, best fit mode is not used. Value is one of fFormatting.ImageBestFit
boolean useBaseline
If true, the image will sit on the baseline, otherwise it will be centred on the baseline. This property is ignored if inline is false.
String viewName
The name of the view to display for the U3D image.
String pdfName
The name for this object when outputting it to PDF.
int animationCount
The number of times to play the animation if defined in the U3D, or a negative value to play the animation indefinitely.
int animationSpeed
The speed multiplier for the animation if defined in the U3D. A value greater than 1 will speed the animation up, a value less than 1 will slow it down.
int animationStyle
The animation playback style to use if if defined in the U3D. Possible values are in fFormatting-PDFAnimationStyles.
fPDFAction script
A PDF action containing JavaScript to run when the 3D object is instantiated in the PDF.
|
|
Returns
|
void. None.
|
|
applyCSS css mode callDisplayWrapper displayMode
|
|
|
Parameters
|
String css
The CSS style properties to apply
int mode
Which mode to evaluate the CSS for. Possible values are on fFormatting-CSSModes.
boolean callDisplayWrapper
If true, the appropriate "display" wrapper functions will be called around the CSS property functions.
String displayMode
The display mode to evaluate the CSS properties for. This value will override any display modes specified in the CSS properties.
|
|
Returns
|
void. None.
|
|
blockColumnFooter num level flags
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the footer, and when zero it indicates that the footer will stop at the end of the current paragraph. (Footers must be a complete number of paragraphs). If num is 2, then it marks the start of the footer in the normal way, but the footer para(s) will be skipped when first encountered in the text.
int level
You can have multiple levels of column footers, by using several calls to blockColumnFooter and specifying a level for each, from 1 to 5. This lets you have up to 5 footers running concurrently. When the block overflows a region, all of the relevant column footers will be inserted in order, from 1 to 5.
String flags
The flags consist of a series of letters that let you control when the column footer is included. They come in two halves as follows:
f,l,m
You can specify which columns include the footer by using flags and distinguishing between first column, last column and middle columns by including a combination of the letters f, l and m. If you don't specify f, l or m, 3B2 will default to including the footer on all columns.
o,h,c,r,t
You can also specify whether to include the footer by using flags to distinguish between the different reasons for the cell ending. Again, if you don't specify any of o, h, c, r or t, 3B2 will default to including the footer whatever the reason for the cell ending. The individual flags work as follows:
o
Footer will appear if the cell overflowed.
h
Footer will appear if a hard column or page break is used.
c
Footer will appear if cell break used.
r
Footer will appear if row break used.
t
Footer will appear at end of block.
|
|
Returns
|
void. This method has no return value.
|
|
blockColumnHeader num level flags
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the header, and when zero it indicates that the header will stop at the end of the current paragraph. (Headers must be a complete number of paragraphs). If num is 2, then it marks the start of the header in the normal way, but the header para(s) will be skipped when first encountered in the text.
int level
You can have multiple levels of column headers, by using several calls to blockColumnHeader and specifying a level for each, from 1 to 5. This lets you have up to 5 headers running concurrently. When the block starts a new region, all of the relevant column headers will be inserted in order, from 1 to 5.
String flags
You can specify which columns include the header by using flags and distinguishing between first column, last column and middle columns by including a combination of the letters f, l and m.
|
|
Returns
|
void. This method has no return value.
|
|
blockEnd topbreak name
|
|
|
Parameters
|
int topbreak
If topbreak is set to 1 and the blockEnd call occurs at the start of a line, then it no longer behaves like a carriage return and doesn't create a newline, whilst still ending the block.
Specifying topbreak = 2 goes one stage further, and if the whole block is empty means that it will be ignored, it will take up no space, and margin merging will take place between the blocks on either side.
Specifying topbreak = 3 will preserve a block if it only contains ignorable whitespace, otherwise it is treated the same as topbreak = 2.
String name
If a name is provided here, it will be checked against the 'name' property of the block. If the names mismatch the block will still be ended but a warning message will be generated. These messages can be viewed by using the tformat? command and turning on the relevant messages.
|
|
Returns
|
void. This method does not return a value.
|
|
blockStart block preamble name
|
|
|
Parameters
|
fBlock block
An optional parameter that specifies the new block's properties.
String preamble
This optional parameter allows inserting a string of processing instructions literally into the preamble of the new block.
String name
This optional parameter allows giving a name to a block. See block 'name' property for more details. This method of giving a name to a block will override the 'name' property, if given previously.
|
|
Returns
|
void. This method does not return a value.
|
|
bookmarkLinkEnd
|
|
|
Parameters
|
None
|
|
Returns
|
void. None.
|
|
bookmarkLinkStart linkName linkColor
|
|
|
Parameters
|
String linkName
The name of the bookmark to use in the link. If a fBookmark object with that name doesn't already exist, one will be created.
fColor linkColor
Sets the colour of highlight for the hot area of a link in PDFs. If not specified, the link colour specified in the current fStyle will be used. IF "none", the link colour specified in the PDF Printer options will be used.
|
|
Returns
|
void. None.
|
|
breakBottom type immediate
|
|
|
Parameters
|
int type
The type of break to issue. Value is one of fFormatting.breakType. Multiple breaks can be issued at the same time by adding these values together.
int immediate
Indicates if the break should occur immediately without waiting for the line or paragraph to end.
|
|
Returns
|
void. None.
|
|
breakTop type immediate
|
|
|
Parameters
|
int type
The type of break to issue. Value is one of fFormatting.breakType. Multiple breaks can be issued at the same time by adding these values together.
int immediate
Indicates if the break should occur immediately without waiting for the line or paragraph to end. If this value is set to 2, the break will be deferred until the next printable character.
|
|
Returns
|
void. None.
|
|
buildIndex name delay
|
|
|
Parameters
|
String name
The name of the desired attribute
boolean delay
If true and the specified index is of type fIndexItem.ON_COMMAND, delay building the index until the end of the format.
|
|
Returns
|
void. None.
|
|
calculateExpression expression percent
|
|
|
Parameters
|
String expression
The expression to be evaluated.
float percent
If the expression contains any percentages, this value will determine what 100% equates to.
|
|
Returns
|
String. The results of the expression. If the expression evaluated to a number, it will need to be converted manually.
|
|
changeLineNumber type value absolute
|
|
|
Parameters
|
int type
The line reference to modify. See fFormatting.LineReference.
int value
the amount to alter the line number by.
boolean absolute
if true, the value will be used as is, otherwise it will be addedd to the current line number.
|
|
Returns
|
void. None.
|
|
contextAdd contexts group limit
|
|
|
Parameters
|
fContexts contexts
The set of contexts to add to the current list.
int group
The number of the group to add the contexts to. This value should be between 0 and 4. The default value is 0.
int limit
If set, any other contexts added prior to this instruction will not be searched. This value defaults to 0. This value should be one of fFormatting-ContextLimits.
|
|
Returns
|
void. None.
|
|
contextRemove group removeAll
|
|
|
Parameters
|
int group
The number of the group to remove the contexts from. This value should be between 0 and 4. The default value is 0.
boolean removeAll
If true, all contexts added using contextAdd() will be removed. This value defaults to false.
|
|
Returns
|
void. None.
|
|
evaluateRunningHeader name group streamName whichReference blankReference whichFirst numCharacters
|
|
|
Parameters
|
String name
The name of the running header reference, or blank for no name.
int group
The running header group from which to obtain the reference. This is the group value from fRunningHeaderReference.RunningHeaderReferenceGroups. If more than one group is specified, the reference determined by whichReference is returned.
String streamName
The name of the stream containing the running header, or blank for the first stream on the page.
int whichReference
Which reference to obtain the header text from. Value is one of fRunningHeaderReference.RunningHeaderText.
int blankReference
How to handle blank running header references. Value is one of fRunningHeaderReference.RunningHeaderBlank.
int whichFirst
Which line should contain the first reference on the page. Value is one of fRunningHeaderReference.RunningHeaderFirstOnPageRef.
int numCharacters
The maximum number of characters to output.
|
|
Returns
|
String. The result of the specified running header.
|
|
evaluateShowString expression
|
|
|
Parameters
|
String expression
The show string to evaluate.
|
|
Returns
|
String. The result of evaluating the given show string.
|
|
evaluateUnstableXPath expression
|
|
|
Parameters
|
String expression
The expression to evaluate.
|
|
Returns
|
String. The results of the expression.
|
|
evaluateXPath expression
|
|
|
Parameters
|
String expression
The expression to evaluate.
|
|
Returns
|
String. The results of the expression.
|
|
fishGet bucket name level
|
|
|
Parameters
|
int bucket
The number of fish bucket to look in.
String name
The name of the property to get.
int level
The number of levels to look back through, i.e. 0 will only return a value if the property was set on this level, 1 will return a value if it was set either on this level or it's parent, etc. -1 will check all levels.
|
|
Returns
|
String. The value of the named fish property, if set.
|
|
fishRestore bucket
|
|
|
Parameters
|
int bucket
The number of fish bucket to restore, or 0 if omitted.
|
|
Returns
|
void. This method does not return a value.
|
|
fishSave bucket
|
|
|
Parameters
|
int bucket
The number of fish bucket to save, or 0 if omitted.
|
|
Returns
|
void. This method does not return a value.
|
|
formatSequence number pattern groupSeparator groupSize
|
|
|
Parameters
|
int number
The number to format.
String pattern
The pattern to use, for example "1" for digits, "a" for letters, or "i" for Roman Numerals. The possible patterns are identical to those provided with the XSLT element xsl:number. This value can also be a complex number format, such as those included in fNumberFormat-NumberFormats.
String groupSeparator
A single character to be used to separate groups of digits.
int groupSize
The number of digits in each group, indicating where the separator should be inserted.
|
|
Returns
|
String. The formatted number.
|
|
formatStream stream position attributes
|
|
|
Parameters
|
fStream stream
The stream to be formatted.
String position
Optionally specify the positions to format in the given stream.
Object attributes
Optionally pass named attributes to the called stream. The properties on the given object are treated equivalently to XML attributes specified when calling a stream. They can be accessed using attribute loops from traditional streams or via arguments[0].attributes from .Jf streams.
|
|
Returns
|
void. This method does not return a value.
|
|
formatText stream mode width
|
|
|
Parameters
|
fStream stream
The stream containing the text to format.
int mode
The mode value to use while formatting the content. This value will be available using the fFormatting.formatTextMode property.
fLength width
The width to use when measuring the text. If not provided, it will use 100mm.
|
|
Returns
|
String. The text generated by formatting the input stream.
|
|
formatUnstableStream stream position attributes
|
|
|
Parameters
|
fStream stream
The stream to be formatted.
String position
Optionally specify the positions to format in the given stream.
Object attributes
Optionally pass named attributes to the called stream. The properties on the given object are treated equivalently to XML attributes specified when calling a stream. They can be accessed using attribute loops from traditional streams or via arguments[0].attributes from .Jf streams.
|
|
Returns
|
void. This method does not return a value.
|
|
getAttribute name inherited
|
|
|
Parameters
|
String name
The name of the desired attribute
int inherited
[optional] If true, check ancestors in the formatting hierarchy for the attribute. Value is one of fFormatting.InheritModes.
|
|
Returns
|
String. The value of the attribute if found, or empty string if not.
|
|
getCurrentIndent
|
|
|
Parameters
|
None
|
|
Returns
|
fIndent. An fIndent object that represents the current horizontal position on the line.
|
|
ignoreSpaces ignoreSpaces
|
|
|
Parameters
|
int ignoreSpaces
The flag indicating which spaces should be ignored. Value is one of fFormatting.IgnoreSpaceFlags.
|
|
Returns
|
void. None.
|
|
insertLeader leader
|
|
|
Parameters
|
fLeader leader
The object containing the leader parameters to insert.
|
|
Returns
|
void. None.
|
|
keepEnd showString wordKeep
|
|
|
Parameters
|
String showString
This method can each take an optional show string. If the text cannot be kept together in a segment then the given show string is processed, otherwise it is ignored. There is no default keepEnd show string.
boolean wordKeep
If true, the keep will end at the end of the word, otherwise it will apply from when this command is issued.
|
|
Returns
|
void. This method does not return a value.
|
|
keepStart showString wordKeep
|
|
|
Parameters
|
String showString
This method can each take an optional show string. If the text cannot be kept together in a segment then the given show string is processed, otherwise it is ignored. The keepStart show string defaults to $262# (soft return ISOnumber) which generates a soft return.
boolean wordKeep
If true, the keep will start from the beginning of the word, otherwise it will apply from when this command is issued.
|
|
Returns
|
void. This method does not return a value.
|
|
lineID lineID
|
|
|
Parameters
|
int lineID
The value to set the line number ID, or -1 for not set.
|
|
Returns
|
void. None.
|
|
lineKeepEnd level
|
|
|
Parameters
|
int level
Line keeps can also be nested. When no line keep is active, the current level is 0. When line keep is first invoked with lineKeepStart, the level for the current line increases to 1. Each subsequent lineKeepStart without any intervening lineKeepEnd will increase the nest level by 1 more. Each lineKeepEnd will decrease the level by 1. When it reaches 0, Line Keep becomes inactive for the current line. lineKeepEnd does not allow the Line Keep level to go below 0.
Sometimes, it may be necessary to start a new nesting structure, ending any previous Line Keeps, or to completely end all active line keeps, without regard to the current level. Both of these are achieved by passing a level number to the methods: lineKeepStart(1); lineKeepEnd(0)
Any level number can be used, but the lineKeepStart number must be at least 1 or the method call is ignored.
If all line keeps are started and ended with level values of 1 and 0 as shown above then this effectively gives inner keep blocks priority over any outer block. However, do note that lines at the beginning of the outer block, before the first inner block starts, will still be kept with the first inner keep as the level number for these lines was greater than 0.
|
|
Returns
|
void. This method does not return a value.
|
|
lineKeepStart level
|
|
|
Parameters
|
int level
Line keeps can also be nested. When no line keep is active, the current level is 0. When line keep is first invoked with lineKeepStart, the level for the current line increases to 1. Each subsequent lineKeepStart without any intervening lineKeepEnd will increase the nest level by 1 more. Each lineKeepEnd will decrease the level by 1. When it reaches 0, Line Keep becomes inactive for the current line. lineKeepEnd does not allow the Line Keep level to go below 0.
Sometimes, it may be necessary to start a new nesting structure, ending any previous Line Keeps, or to completely end all active line keeps, without regard to the current level. Both of these are achieved by passing a level number to the methods: lineKeepStart(1); lineKeepEnd(0)
Any level number can be used, but the lineKeepStart number must be at least 1 or the method call is ignored.
If all line keeps are started and ended with level values of 1 and 0 as shown above then this effectively gives inner keep blocks priority over any outer block. However, do note that lines at the beginning of the outer block, before the first inner block starts, will still be kept with the first inner keep as the level number for these lines was greater than 0.
|
|
Returns
|
void. This method does not return a value.
|
|
lineNumberReset lineNumber paraNumber
|
|
|
Parameters
|
int lineNumber
The value to set the line number count to, or 0 to not change.
int paraNumber
The value to set the paragraph number count to, or 0 to not change.
|
|
Returns
|
void. None.
|
|
mapReturns mapReturns
|
|
|
Parameters
|
int mapReturns
The flag indicating which character to map returns to. Value is one of fFormatting.MapReturnFlags.
|
|
Returns
|
void. None.
|
|
mapTabs mapTabs
|
|
|
Parameters
|
boolean mapTabs
If true, any tab characters will be mapped to spaces. Otherwise, they will be left as tabs.
|
|
Returns
|
void. None.
|
|
measureContent stream width
|
|
|
Parameters
|
fStream stream
The stream containing the text to format.
fLength width
The width to use when measuring the text. If not provided, it will use 100mm.
|
|
Returns
|
fLength. The height of the content.
|
|
output string
|
|
|
Parameters
|
String string
The string to be processed at the current formatting position.
|
|
Returns
|
String. The string that was inserted at the formatting position.
|
|
outputGlyphs actualText glyph
|
|
|
Parameters
|
String actualText
The "actual text" to output in the PDF around the glyphs.
int glyph
The glyphs to output at the current formatting position.
|
|
Returns
|
void. None.
|
|
pageLabelStore label
|
|
|
Parameters
|
String label
The text to store in the page label.
|
|
Returns
|
void. None.
|
|
pageSequenceBreak oddeven id
|
|
|
Parameters
|
int oddeven
The side the next page should be on. Possible values are in fDocumentSequenceItem-StartForce.
int id
The new document sequence id number to use for the current page sequence. If this value is not provided or set to -1, the current id number will be used.
|
|
Returns
|
void. None.
|
|
pageSequenceEnd downLevel sequence
|
|
|
Parameters
|
boolean downLevel
If true, move back to the previous level in the stack of active page sequences. Otherwise, switch to the next available sequence.
fDocumentSequenceItem sequence
The page sequence to start when the current page sequence is ended. This parameter is ignored if downLevel is true.
|
|
Returns
|
void. None.
|
|
pageSequenceStart sequence upLevel
|
|
|
Parameters
|
fDocumentSequenceItem sequence
The page sequence to start with all associated parameters.
boolean upLevel
If true, start this page sequence as a child of the current active page sequences, creating a new level in the stack of sequences. Otherwise, end the current sequence and start this one in its place.
|
|
Returns
|
void. None.
|
|
paragraphStart paragraph style
|
|
|
Parameters
|
fParagraph paragraph
If specified, specifies the default values for the paragraph properties of the new paragraph.
fStyle style
If specified, specifies the default values for the style of the new paragraph.
|
|
Returns
|
void. This method does not return a value.
|
|
pdfNote comment open author subject color icon pdfName pdfLayer locked
|
|
|
Parameters
|
String comment
The text to put in the sticky note.
boolean open
If true, the comment will initially be open when the PDF is opened.
String author
The author of the comment.
String subject
The subject of the comment.
fColor color
The color to use for the sticky note. If this parameter is null, the sticky note will default to yellow.
int icon
The icon to use when displaying the note in the PDF. The value is one of fPDFNote.Icons, and defaults to fPDFNote.ICON_NOTE.
String pdfName
The name to use for the note in the PDF.
fPDFLayer pdfLayer
The PDF layer to place the PDF note on.
boolean locked
If true, the PDF Note marker will be locked, and cannot be moved.
|
|
Returns
|
void. None.
|
|
pdfTagActivate label
|
|
|
Parameters
|
String label
An optional parameter for the label of the PDF Tag that should be activated.
|
|
Returns
|
void. None.
|
|
pdfTagEnd name
|
|
|
Parameters
|
String name
An optional parameter for the name of the PDF Tag that should be closed. If a name is provided and the name doesn't match the current open PDF Tag, then an error is raised.
|
|
Returns
|
void. None.
|
|
pdfTagStart tag
|
|
|
Parameters
|
fPDFTagItem tag
The PDF Tag to start, use fPDFTagArtifact objects for tags with the Artifact Role, and fPDFTagElement for all other roles.
|
|
Returns
|
void. None.
|
|
printPassthrough printer mode stream
|
|
|
Parameters
|
String printer
The name of the printer to send data to.
int mode
The passthrough mode. These values are different depending on the type of printer. For the JS driver, mode 0 will copy the contents of the stream to the output, and mode 1 will run the stream if it is a JavaScript function. For the RAW drivers, mode 0 will copy the contents of the stream to the output.
fStream stream
The stream containing the data to send to the printer.
|
|
Returns
|
void. None.
|
|
raiseError severity message mode
|
|
|
Parameters
|
int severity
The level of the error to raise. See fFormatting.ErrorSeverity.
String message
The message text to be written to the log.
int mode
If mode is 1, the errors will get raised as 1501 (Error), 1601 (Warning), and 1691 (Info), instead of 1500 / 1600 / 1690.
|
|
Returns
|
void. None.
|
|
recordEnd type align conditional
|
|
|
Parameters
|
int type
The type of break to issue when ending the line. Value is one of fFormatting.RecordEndType.
int align
Specifies how to align the line containing the break. Value is one of fFormatting.RecordEndAlign.
int conditional
Specifies when to issue the break. Value is one of fFormatting.RecordEndCondition.
|
|
Returns
|
void. None.
|
|
styleChange style
|
|
|
Parameters
|
fStyle style
The style object to process.
|
|
Returns
|
void. This method does not return a value.
|
|
styleRestore
|
|
|
Parameters
|
None
|
|
Returns
|
void. This method does not return a value.
|
|
styleSave
|
|
|
Parameters
|
None
|
|
Returns
|
void. This method does not return a value.
|
|
subscriptEnd keepHorizontal endAll
|
|
|
Parameters
|
boolean keepHorizontal
If false or omitted, end the current subscript level and return to the horizontal position where the subscript started. If true, remain at the horizontal position where the subscript ended.
boolean endAll
If false or omitted, one subscript level is ended. If true, all subscript and superscript levels are ended. If true, the parameter keepHorizontal is ignored.
|
|
Returns
|
void. This method does not return a value.
|
|
subscriptStart
|
|
|
Parameters
|
None
|
|
Returns
|
void. This method does not return a value.
|
|
superscriptEnd keepHorizontal endAll
|
|
|
Parameters
|
boolean keepHorizontal
If false or omitted, end the current subscript level and return to the horizontal position where the subscript started. If true, remain at the horizontal position where the superscript ended.
boolean endAll
If false or omitted, one superscript level is ended. If true, all subscript and superscript levels are ended. If true, the parameter keepHorizontal is ignored.
|
|
Returns
|
void. This method does not return a value.
|
|
superscriptStart
|
|
|
Parameters
|
None
|
|
Returns
|
void. This method does not return a value.
|
|
svgDisplayPassthrough guide attribute value type
|
|
|
Parameters
|
int guide
The guide to add the data attribute to, if the guide is active.
String attribute
The label of the data attribute to create.
String value
The value to write into the data attribute.
int type
The type of data attribute to create if appropriate. Possible values are on fFormatting-SVGPassthroughDataTypes
|
|
Returns
|
void. None.
|
|
tableCellStart cell startColumn endColumn fillCells
|
|
|
Parameters
|
fTableCell cell
Specifies properties of the new cell.
String startColumn
The first column used by the cell. The parameters startColumn and endColumn can either both be integers specifying the desired columns by index or strings giving the column's names (see fTableColumn::name .
String endColumn
The last column used by the cell. The parameters startColumn and endColumn can either both be integers specifying the desired columns by index or strings giving the column's names (see fTableColumn::name .
int fillCells
If the start column is not the next column, should the intervening cells be filled with an empty cell.
|
|
Returns
|
void. This method does not return a value.
|
|
tableColumnFooter num level flags
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the footer, and when zero it indicates that the footer will stop at the end of the current paragraph. (Footers must be a complete number of paragraphs). If num is 2, then it marks the start of the footer in the normal way, but the footer para(s) will be skipped when first encountered in the text.
int level
You can have multiple levels of column footers, by using several calls to tableColumnFooter and specifying a level for each, from 1 to 5. This lets you have up to 5 footers running concurrently. When the table overflows a cell, all of the relevant column footers will be inserted in order, from 1 to 5.
String flags
The flags consist of a series of letters that let you control when the column footer is included. They come in two halves as follows:
f,l,m
You can specify which columns include the footer by using flags and distinguishing between first column, last column and middle columns by including a combination of the letters f, l and m. If you don't specify f, l or m, 3B2 will default to including the footer on all columns.
o,h,c,r,t
You can also specify whether to include the footer by using flags to distinguish between the different reasons for the cell ending. Again, if you don't specify any of o, h, c, r or t, 3B2 will default to including the footer whatever the reason for the cell ending. The individual flags work as follows:
o
Footer will appear if the cell overflowed.
h
Footer will appear if a hard column or page break is used.
c
Footer will appear if cell break used.
r
Footer will appear if row break used.
t
Footer will appear at end of table.
|
|
Returns
|
void. This method has no return value.
|
|
tableColumnHeader num level flags
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the header, and when zero it indicates that the header will stop at the end of the current paragraph. (Headers must be a complete number of paragraphs). If num is 2, then it marks the start of the header in the normal way, but the header para(s) will be skipped when first encountered in the text.
int level
You can have multiple levels of column headers, by using several calls to tableColumnHeader and specifying a level for each, from 1 to 5. This lets you have up to 5 headers running concurrently. When the table starts a new cell, all of the relevant column headers will be inserted in order, from 1 to 5.
String flags
You can specify which columns include the header by using flags and distinguishing between first column, last column and middle columns by including a combination of the letters f, l and m.
|
|
Returns
|
void. This method has no return value.
|
|
tableEnd topbreak name
|
|
|
Parameters
|
int topbreak
If topbreak is set to 1 and the tableEnd call occurs at the start of a line, then it no longer behaves line a carriage return and doesn't create a newline, whilst still ending the table.
String name
If a name is provided here, it will be checked against the 'name' property of the table. If the names mismatch the table will still be ended but a warning message will be generated. These messages can be viewed by using the tformat? command and turning on the relevant messages.
|
|
Returns
|
void. This method does not return a value.
|
|
tableRowCaption num
|
|
|
Parameters
|
int num
tableRowCaption(1) specifies the start of a top caption, tableRowCaption(2) specifies the start of a bottom caption, tableRowCaption(4) specifies the start of a mid-colset caption and tableRowCaption(0) specifies the end of the caption row(s).
|
|
Returns
|
void. This method does not return a value.
|
|
tableRowFooter num
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the footer, and when zero it indicates that the footer will stop at the end of the current row. (Footers must be complete rows). The footer row(s) will be inserted whenever the table breaks a column/page. If num is 2, then it marks the start of the footer in the normal way, but the footer row(s) will only be inserted when the table breaks, and will be skipped when encountered otherwise.
|
|
Returns
|
void. This method does not return a value.
|
|
tableRowHeader num level
|
|
|
Parameters
|
int num
If num is non-zero then this marks the start of the header, and when zero it indicates that the header will stop at the end of the current row. (Headers must be complete rows). The header row(s) will be re-inserted whenever the table starts a new column/page. If num is 2, then it marks the start of the header in the normal way, but the header row(s) will only be inserted when the table restarts, and will be skipped when encountered otherwise.
int level
You can have multiple levels of headers, by using several calls to this method and specifying a level for each, from 1 to 5. This lets you have up to 5 headers running concurrently. When the table starts a new column/page, all of the headers will be inserted in order, from 1 to 5.
In addition, you can change headers mid-way through the table. When used in conjunction with levels, you will only override the specified level. Thus you could have a main header on level 1, and sub-headers on level 2 that change for each section of the table. If a change of header occurs, whilst inserting headers, then the new header will be used.
|
|
Returns
|
void. This method has no return value.
|
|
tableRowStart row
|
|
|
Parameters
|
fTableRow row
This row object specifies settings for the new row and defaults of its cells.
|
|
Returns
|
void. This method does not return a value.
|
|
tableStart table preamble name
|
|
|
Parameters
|
fTable table
The given table object allows you to set up parameters for the table, the columns and the default cell properties.
String preamble
This optional parameter allows inserting a string of processing instructions literally into the preamble of the new table.
String name
This optional parameter allows giving a name to a table. See table 'name' property for more details. This method of giving a name to a table will override the 'name' property, if given previously.
|
|
Returns
|
void. This method does not return a value.
|
|
texEnd
|
|
|
Parameters
|
None
|
|
Returns
|
void. This method does not return a value
|
|
texStart block tex
|
|
|
Parameters
|
boolean block
If false, the new TeX formula is formatted within the current paragraph. If true, it is formatted as its own block.
fTeX tex
If specified, this objects sets the properties for the new TeX formula.
|
|
Returns
|
void. This method does not return a value
|
|
write string
|
|
|
Parameters
|
String string
The string to be inserted at the current formatting position.
|
|
Returns
|
String. The string that was inserted.
|