signatureサンプル1
電子署名フィールドの表示と印刷設定に関するサンプルです。
signatureサンプル1(『<biz-Stream_home>/sample/xml/signature/signatureSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Name="signatureSample1" Width="150" Height="250" X="20" Y="10" 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"> <!-- 枠線(青線) --> <Square Width="110" Height="50" Y="165" LineColor="14,0,176" LineStyle="Solid"/> <!-- (1)署名1 --> <Label Width="40" X="10" Y="205" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">申請1</Label> <signature name="signature1" x="10" y="180" width="40" height="20" print="true"/> <!-- (2)署名2 --> <Label Width="40" X="60" Y="205" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">承認1</Label> <signature name="signature2" x="60" y="180" width="40" height="20" print="true"/> <!-- 枠線(青線) --> <Square Width="110" Height="50" Y="85" LineColor="14,0,176" LineStyle="Solid"/> <!-- (3)署名3 --> <Label Width="40" X="10" Y="125" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">申請2</Label> <signature name="signature3" x="10" y="100" width="40" height="20" print="true"/> <!-- (4)署名4 --> <Label Width="40" X="60" Y="125" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">承認2</Label> <signature name="signature4" x="60" y="100" width="40" height="20" print="true"/> <!-- 枠線(青線) --> <Square Width="110" Height="50" Y="5" LineColor="14,0,176" LineStyle="Solid"/> <!-- (5)署名5 --> <Label Width="40" X="10" Y="45" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">申請3</Label> <signature name="signature5" x="10" y="20" width="40" height="20" background-color="255,0,0" print="true"/> <!-- (6)署名6 --> <Label Width="40" X="60" Y="45" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">承認3</Label> <signature name="signature6" x="60" y="20" width="40" height="20" border-color="0,255,0" print="true"/> </Layout>
生成されるPDF(『<biz-Stream_home>/sample/xml/signature/signatureSample1.pdf
』)

・印刷方法の定義
- ①signature1:print="true"(⇒印刷する)
- ②signature2:print="false"(⇒印刷しない)
- ③signature3:print指定なし(⇒印刷する)
- ④signature4:print指定なし(⇒印刷する)
※②は、表示のみで印刷の対象とはなりません。
・電子署名フィールドの詳細定義
- ⑤signature5:background-color="255,0,0"
- ⑥signature6:border-color="0,255,0"
- ※name属性で定義した名前で、Acrobat Self-Signセキュリティ用の電子署名フィールドが作成されます。