7.4

Table Of Contents
used if you understand the implications of doing so.
Syntax
definedata( path )
Argument
path
String value specifying the path of the data file.
DefineImageIndex (procedure)
Defines a PlanetPress Search index term. PlanetPress Image uses this information to generate the .PDI file it creates for each
PDF file it creates. You use SetImageIndex (procedure) to associate a data value with the index term.
Syntax
defineimageindex( name, [length] )
Arguments
name
String value specifying a name for the index term.
length
String value specifying a length for the index term.
Code Sample Examples
Example 1
This example defines the index term 'PONumber' and assigns it a length of 8 characters. The PDI file generated by PlanetPress
Image contains the line: ~IndexName=PONumber,8.
defineimageindex( 'PONumber', '8')
Example 2
This example defines the same index term, this time without defining a length for the term. In this case the line in the PDI file
becomes: ~IndexName=PONumber
defineimageindex( 'PONumber' )
Definemeta (function)
Defines a field when running a PlanetPress Design Document with metadata file creation. In every cases, the name of the field
is case-insensitive and must begin with a letter (A-Z, a-z), followed by any number of letters, numbers (0-9), underscore ('_')
or dash ('-') characters.
Syntax
definemeta(name: string, data: string, [flags: integer, path: string])
©2010 Objectif Lune Inc - 270 -