PaginationServices 2.0.1

PaginationServices

Services available for pagination. See document examples.

String.asPagination() : org.obeonetwork.m2doc.element.MPagination

Converts a String to an hyperlink

Parameter

  • paginationElement: The name of the pagination element: ‘newTableOfContent’, ‘newPage’, ‘newParagraph’, ‘newColumn’, ‘newTextWrapping’

Example

  • ‘newPage’.asPagination()
    • insert a page break

String.asStyle(String) : org.obeonetwork.m2doc.element.MParagraph

Converts a String with a given style if the style exists in the template, this service will insert a new paragraph. You can add styled text in comment to make sure they are present.

Parameter

  • text: The text
  • style: The style name

Example

  • ‘Section 1’.asStyle(‘Title1’)
    • insert ‘Section 1’ as style ‘Titre1’ in a new paragraph if the style exists in the template.