JBarnes
JBarnes

Reputation: 63

Detect "Page Break" in RichText field with LotusScript

How can I detect page breaks in an RTF field?

I need to do a process to replace page breaks with symbols.

Upvotes: 2

Views: 249

Answers (1)

Knut Herrmann
Knut Herrmann

Reputation: 30970

You can't do it with LotusScript Domino classes.

You can find all page breaks with the help of DXL export though:

  1. export relevant documents https://stackoverflow.com/a/24409018/2065611
  2. analyze RTFs in DXL - look für <pardef's with newpage='true'
    <item name='Body'>
        <richtext>
        <pardef id='1'/>
        <par def='1'>a</par>
        <par def='1'>b</par>
        <pardef id='2' newpage='true'/>
        <par def='2'>c</par>
        <par def='1'>d</par>
        </richtext>
    </item>

The harder job will be to replace all occurrences:

  1. replace the content in document's DXL
  2. import document's DXL into a temporary document
  3. replace RTFs in original Notes document with the modified RTFs from temporary document

Upvotes: 2

Related Questions