LinkImageサンプル1
LinkImageサンプル1(『<biz-Stream_home>/sample/xml/LinkImage/LinkImageSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="LinkImageSample1" Width="50" Height="50" 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="30" Height="30" LineColor="14,0,176" FillColor="204,204,204" LineStyle="Solid"/>
<!-- イメージ -->
<LinkImage Width="9.7" Height="8.527" X="10" Y="10" Format="cmyk" Uri="http://www.brainsellers.com">${base-dir}/sample/xml/LinkImage/sample1.jpg</LinkImage>
</Layout>
<LinkImage Width="9.7" Height="8.527" X="10" Y="10" Format="cmyk" Uri="http://www.brainsellers.com">${base-dir}/sample/xml/LinkImage/sample1.jpg</LinkImage>
生成されるPDF(『<biz-Stream_home>/sample/xml/LinkImage/LinkImageSample1.pdf
』)
Uri属性でリンク先
(http://www.brainsellers.com)が指定されているため、PDF上からブラウザを起動し、リンク先を表示します。
biz-Streamでは、イメージの指定として次の要素が用意されています。
- イメージ: Imageタグ
- リンク付きイメージ: LinkImageタグ
- 白黒2値イメージ: MonochromeImageタグ
- CCITTFaxイメージ: CCITTFaxXImageタグ
