watermark-textサンプル1
テキストの指定方法に関するサンプルです。
watermark-textサンプル1(『<biz-Stream_home>/sample/xml/watermark/watermarkSampleText1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Width="300pt" Height="400pt" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0"> <watermark x="28.222" y="51.153" dx="0" dy="0" width="140px" height="110px" line-space="1mm" text-align="center" line-align="center" align="vertical" print="true" view="true" rate="80" fit="horizon"> <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-style="PLAIN" rotate="15" narrow="horizon" text-rendering="stroke">BrainSellers.com Corporation 15゜</watermark-text> <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-style="PLAIN" rotate="0" narrow="horizon" text-rendering="fill">BrainSellers.com Corporation 0゜</watermark-text> <watermark-text text-align="left" line-align="top" font-family="MSGothic" font-color="255,0,0" font-style="PLAIN" rotate="345" narrow="horizon" text-rendering="stroke">BrainSellers.com Corporation 345゜</watermark-text> </watermark> </Layout>
生成されるPDF(『<biz-Stream_home>/sample/xml/watermark/watermarkSampleText1.pdf
』)
回転属性(rotate)を指定したサンプルです。

回転(rotate属性)は文字の左端を軸に反時計周りで回転します。
- ①15°の指定です。
- ②0°の指定です。(初期値)
- ③345°の指定です。