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

16.2 Self-Sign 用電子署名フィールド<signature>


16.2.1機能説明

biz-Streamでは、電子署名の指定として次の要素が用意されています。

  • Self-Sign用電子署名フィールド:signatureタグ
  • Entrust用電子署名フィールド:entrust-signatureタグ
  • VeriSign用電子署名フィールド:verisign-signatureタグ

証明書をPDFに埋め込む場合は、製品DVD-ROMに同梱している/jre/jce_policy/のlocal_policy.jarとUS_export_policy.jarを、<JRE_HOME>/lib/security/以下の物と入れ替える必要があります。尚、同梱しているjce_policyのzipファイルはOracleのJDK/JRE用となります。お客様環境に合わせて対応バージョンのファイルを選択してください。



16.2.2属性説明

属性説明

「Acrobat Self-Signセキュリティ」用電子署名フィールドの設定を行います。

属性名指定説明指定内容初期値
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
print任意電子署名フィールドの印刷(Choice)true(印刷する) /
false(印刷しない)
true
  • 【注】初期値:出荷時のXMLデフォルト情報(default_values.properties)値を表します。ユーザにより値の変更が行われた場合は内容が異なります。


16.2.3記述例

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


Self-Sign

・印刷方法の定義

  • 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セキュリティ用の電子署名フィールドが作成されます。