biz-StreamマニュアルXMLページレイアウトタグ リファレンス第3章 テキスト3.4 リンク付き横書きテキスト<LinkLabel>

3.4 リンク付き横書きテキスト<LinkLabel>


3.4.1機能説明

リンク先(URI)を付加した横書きテキストの定義を行います。
リンク先を付加した縦書きテキストには『3.5 リンク付き縦書きテキスト<LinkVerticalLabel>』をご利用ください。



3.4.2属性説明

属性名 指定 説明 指定内容 初期値
Name 任意 名前 CDATA
Width 任意 描画領域の幅 CDATA
Height 任意 描画領域の高さ CDATA
X 任意 X座標 CDATA 0
Y 任意 Y座標 CDATA 0
Unit 任意 単位 (Choice) mm / cm / in / px / pt mm
Horizon 任意 水平方向の配置 (Choice) left / center / right / even left
Vertical 任意 垂直方向の配置 (Choice) top / center / bottom / even bottom
Vector 任意 文字方向 (Choice) horizon / vertical horizon
CharSpace 任意 文字間隔 CDATA 0
Font 任意 フォント種類 (Choice) ライブラリ共通ガイド
6.2 横書きフォント』を参照
MSGothic
GaijiFont 任意 外字フォント種類 (Choice) ライブラリ共通ガイド
6.6 外字フォント』を参照
FontColor 任意 フォントの色 CDATA 0
FontSize 任意 フォントサイズ CDATA 8
FontStyle フォントスタイル (Choice) PLAIN / BOLD / ITALIC / BOLD-ITALIC PLAIN
FontEncoding 任意 フォントエンコーディング (Choice) 90ms-RKSJ-H / 90ms-RKSJ-V / 90msp-RKSJ-H / 90msp-RKSJ-V / UniJIS-UTF16-H / UniJIS-UTF16-V フォントごとのデフォルト値
Rate 任意 拡大縮小率 CDATA 100
Narrow 任意 描画領域にデータが入りきらない場合の圧縮方法 (Choice) horizon / size / none horizon
Uri 必須 リンク先(URI)数値の場合、文書内のページへリンク CDATA
MaxLength 任意 表示する最大文字数 CDATA
  • (注)初期値:出荷時のXML デフォルト情報(default_values.properties)値を表します。ユーザにより値の変更が行われた場合は内容が異なります。


3.4.3記述例

LinkLabel サンプル1

サンプル1 (『<biz-Stream_home>/sample/xml/LinkLabel/LinkLabelsample1.xml LinkLabelサンプル1』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="LinkLabel1" Width="100" Height="80" X="10" 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="80" Height="50" LineColor="14,0,176" LineStyle="Solid"/>

    <Label Width="80" Y="40" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="BOLD" Narrow="horizon">お問合せ先</Label>
    <Label Width="80" Y="30" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">ブレインセラーズ・ドットコム株式会社</Label>
    <Label Width="80" Y="25" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">東京都千代田区九段北XX-XX-XX</Label>
    <Label Width="80" Y="20" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">TEL:XX-XXXX-XXXX</Label>
    <Label Width="80" Y="15" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">FAX:XX-XXXX-XXXX</Label>
    <LinkLabel Width="80" Y="10" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontColor="0,0,255" Uri="http://www.brainsellers.com" FontStyle="PLAIN" Narrow="horizon">ホームページへはこちらをクリック!</LinkLabel>
</Layout>

<LinkLabel Width="80" Y="10" Horizon="center" Vertical="bottom" Vector="horizon" Font="MSGothic" FontColor="0,0,255" Uri="http://www.brainsellers.com" FontStyle="PLAIN" Narrow="horizon">ホームページへはこちらをクリック!</LinkLabel>


生成されるPDF (『<biz-Stream_home>/sample/xml/LinkLabel/LinkLabelSample1.pdf LinkLabel サンプル1』)


LinkLabelサンプル1

Uri属性でリンク先
(http://www.brainsellers.com)が指定されているため、PDF上からブラウザを起動し、リンク先を表示します。