XSLFO:XSL Formatter——将水印定位在页面顶部?
I've reviewed the XSL Formatter documentation on extension properties that affect a watermark (see https://www.antenna.co.jp/AHF/help/en/ahf-optset.html#watermark-text ). I don't see any property that enables one to position the watermark other than the center of the page. For example, if I want to move the watermark to the top of the page. So I want to check here on SO whether I'm overlooking some property or setting that's relevant to this requirement. Thanks for any feedback.
解决方案
I think that the watermark that you can set is a generalisation of the watermark that's added when you are using an evaluation license, as the watermark-text option is invalid with the evaluation license, and with Antenna House Formatter Lite, the evaluation watermark takes over after 300 pages. As such, the watermark was designed to be obvious.
You could, instead, generate something that looks like a watermark using an fo:static-content. Antenna House Formatter renders the fo:region-body, fo:region-before, etc., in the sequence in which they are ordered in the fo:simple-page-master, so you can put the content of the fo:static-content under or above the body text as you wish. (See https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#ext-xsl-others)
Alternatively, you could specify an SVG of the watermark as the background of either the fo:simple-page-master or the fo:page-sequence. (See https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#background)