5.19.4 ADD

The ADD command reads the XML content file for the specified content section and adds the content to the current document or template. LANSA fields passed with the command can be merged into any XML attribute using the {field} notation.

The PDF document can be broken down into small content regions and each ADD command call can generate the content for that region.

When adding content that contains a table with a height attribute, if all the rows in the working list do NOT fit into the specified table height then:

Syntax:

Command

Keyword

Value

Developer notes

ADD

CONTENT

value

Required. Name of XML content section. Refer to list following.

OFFSET

*NONE

Optional. Default. The zero X and Y co-ordinate is the bottom left corner of the page.

*MARGIN

Add the left margin value to the X co-ordinate and the bottom margin to the y co-ordinate. This will offset the location by the current margin amount.

TEMPLATE

value

Optional. Name of template to receive content.

PASSWORD

value

Optional. Required by import PDF pages, if PDF file is password protected.

 

Example

ADD CONTENT(main) #WRKLST

 

ADD CONTENT(image) SERVICE_EXCHANGE(*FIELD)

 

Also see

5.19.11 XML Content