barcode-postalサンプル1
barcode-postalサンプル1(『<biz-Stream_home>/sample/xml/barcode-postal/barcode-postalSample1.xml
』)
<?xml version="1.0" encoding="UTF-8"?> <!-- XML file created by biz-Stream Designer --> <!-- biz-Stream Copyright BrainSellers.com Corp. --> <Layout Name="barcode-postalSample1" Width="80" Height="150" 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="60" Height="130" LineColor="14,0,176" FillColor="204,204,204" LineStyle="Solid"/> <!-- (1)バーコード1 --> <barcode-postal name="barcode1" width="40" height="20" x="10" y="90">3-20-5-B604</barcode-postal> <!-- (2)バーコード2 --> <barcode-postal name="barcode2" width="40" height="40" x="10" y="40">3-20-5-B604</barcode-postal> <!-- (3)バーコード3 --> <barcode-postal name="barcode3" width="20" height="20" x="10" y="10">3-20-5-B604</barcode-postal> </Layout>
<!-- (1)バーコード1 -->
<barcode-postal name="barcode1" width="40" height="20" x="10" y="90">3-20-5-B604</barcode-postal>
<!-- (2)バーコード2 -->
<barcode-postal name="barcode2" width="40" height="40" x="10" y="40">3-20-5-B604</barcode-postal>
<!-- (3)バーコード3 -->
<barcode-postal name="barcode3" width="20" height="20" x="10" y="10">3-20-5-B604</barcode-postal>
生成されるPDF(『<biz-Stream_home>/sample/xml/barcode-postal/barcode-postalSample1.pdf
』)

子要素で指定された数値が郵便カスタマバーコードとして生成されます。
- ①barcode1:width="40" height="20"
- ②barcode2:width="40" height="40"
- ③barcode3:width="20" height="20"
- ※width属性で指定される数値は、バーコードの幅に反映されます。
- ※height属性で指定される数値は、描画領域の高さに反映されます。
バーコードの高さは、width属性で指定された数値から自動的に調節されます。 - ※バーコードは、height属性で指定された描画領域の中央に表示されます。