You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

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


  • No labels