entrust-signatureサンプル1
電子署名フィールドの表示(hidden属性)と印刷(print属性)設定に関するサンプルです。
- ※表示と印刷設定のサンプルであるため複数のentrust-signatureを指定しています。
entrust-signatureサンプル1
(『<biz-Stream_home>/sample/xml/entrust-signature/entrust-signatureSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Name="entrust-signatureSample1" Width="120" Height="150" X="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"> <!-- (1)署名サンプル1 --> <Label X="10" Y="110" Horizon="left" Vertical="center" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">サンプル1</Label> <entrust-signature name="en1" x="40" y="110" width="40" height="20" hidden="true" print="true"/> <!-- (2)署名サンプル2 --> <Label X="10" Y="80" Horizon="left" Vertical="center" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">サンプル2</Label> <entrust-signature name="en2" x="40" y="80" width="40" height="20" hidden="true" print="false"/> <!-- (3)署名サンプル3 --> <Label X="10" Y="50" Horizon="left" Vertical="center" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">サンプル3</Label> <entrust-signature name="en3" x="40" y="50" width="40" height="20" hidden="false" print="true"/> <!-- (4)署名サンプル4 --> <Label X="10" Y="20" Horizon="left" Vertical="center" Vector="horizon" Font="MSGothic" FontSize="14" FontStyle="PLAIN" Narrow="horizon">サンプル4</Label> <entrust-signature name="en4" x="40" y="20" width="40" height="20" hidden="false" print="false"/> </Layout>
生成されるPDF(『<biz-Stream_home>/sample/xml/entrust-signature/entrust-signatureSample1.pdf
』)

<表示方法・印刷方法の定義>
- ①en1: hidden="true"、print="true"(⇒非表示・印刷する)
- ②en2: hidden="true"、print="false"(⇒非表示・印刷しない)
- ③en3: hidden="false"、print="true"(⇒表示・印刷する)
- ④en4: hidden="false"、print="false"(⇒表示・印刷しない)
- ※電子署名フィールドが非表示(hidden="true")の場合、生成されたPDF上から署名を行うことはできません。
- ※②④では、表示のみで印刷の対象とはなりません。
- ※hidden、print指定を行わない場合は①が採用されます。