biz-Streamマニュアル XMLページレイアウトタグ リファレンス 第16章 電子署名 16.3 Entrust 用電子署名フィールド<entrust-signature>

16.3 Entrust 用電子署名フィールド<entrust-signature>


16.3.1機能説明

「Entrust」用電子署名フィールドの設定を行います。



16.3.2属性説明

属性説明
属性名指定説明指定内容初期値
name必須名前CDATA
field-name必須電子署名フィールドのフィールド名CDATA
x任意X座標CDATA0
y任意Y座標CDATA0
unit任意単位(Choice)mm / cm / in / px / ptmm
width必須電子署名フィールドの幅CDATA
height必須電子署名フィールドの高さCDATA
border-color任意電子署名フィールド枠線の色CDATA
background-color任意電子署名フィールド背景の色CDATA
hidden任意電子署名フィールドの表示(Choice)true(非表示) /
false(表示)
true
print任意電子署名フィールドの印刷(Choice)true(印刷する) /
false(印刷しない)
true
  • (注)初期値:出荷時のXMLデフォルト情報(default_values.properties)値を表します。ユーザにより値の変更が行われた場合は内容が異なります。


16.3.3記述例

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』)


Entrust

<表示方法・印刷方法の定義>

  • 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指定を行わない場合は①が採用されます。