Mark
Sets an invisible mark into the output. This is helpful when you want to know on which page the mark is placed on. The mark takes the page it is output on: in an Action inside a Paragraph the page of its line, in a Slate the page the slate is placed on. A mark that is output more than once, such as one in a slate placed twice, keeps the last page.
Child elements
(none)
Parent elements
Attributes
pdftarget(yes or no, optional)- Set a pdf target that can be referenced by A
select(XPath expressions)- The name of the mark to be set.
Example
<PageFormat width="210mm" height="4cm"/>
<Record match="data">
<PlaceObject>
<TextBlock>
<Paragraph>
<Value>
Row
Row
Row
Row
</Value>
</Paragraph>
</TextBlock>
<TextBlock>
<Action>
<Mark select="'textstart'"/>
</Action>
<Paragraph>
<Value>
Row
Row
Row
</Value>
</Paragraph>
</TextBlock>
</PlaceObject>
<ClearPage/>
<Message select="sd:page-number('textstart')"></Message>
</Record>Info
Marks get saved for subsequent runs.
See also
- Commands: Action, Bookmark
- Manual: PDF Options: Page destinations, XPath Functions: Page and position