5 34 4 ADD

LANSA Integrator

5.34.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 a status of INCOMPLETE is returned. The working list is modified and unused entries are left in the list ready for another ADD content call.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

ADD

CONTENT

value

Mandatory. Name of XML content section.

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) SERVICE_LIST(...)

 

ADD CONTENT(image) TEMPLATE(logo) SERVICE_LIST(...)

 

Also see

5.34.11 XML Content