Input
โค้ด: เลือกทั้งหมด
<?xml version="1.0" encoding="utf-8"?>
<document filename="test.pdf">
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
<pageTemplate id="main">
<pageGraphics>
<!-- Set here the default font to use for all <drawString> tags -->
<setFont name="Curlz MT Regular" size="8"/>
<!-- You Logo - Change X,Y,Width and Height -->
<image x="1.3cm" y="27.7cm" height="40.0">[[ company.logo or removeParentNode('image') ]]</image>
</pageGraphics>
<frame id="first" x1="29.0" y1="29.0" width="537" height="784"/>
</pageTemplate>
<pageTemplate id="main2">
<pageGraphics>
<!-- Set here the default font to use for all <drawString> tags -->
<setFont name="Curlz MT Regular" size="8"/>
<!-- You Logo - Change X,Y,Width and Height -->
</pageGraphics>
<!--frame id="second" x1="29.0" y1="9.0" width="537" height="784"/-->
</pageTemplate>
</template>
<stylesheet>
<blockTableStyle id="Table1">
<blockAlignment value="LEFT"/>
<blockValign value="TOP"/>
</blockTableStyle>
<paraStyle name="P1" fontName="Curlz MT Regular" fontSize="12" leading="15" leftIndent="150"/>
<paraStyle name="P2" fontName="Curlz MT Regular" fontSize="12" leading="15" leftIndent="200"/>
<paraStyle name="P3" fontName="Curlz MT Regular" fontSize="12" leading="80" leftIndent="200" fontcolor="white"/>
</stylesheet>
<story>
<para style="P1">(M.D.SOFT COMPANY LIMITED)</para>
<illustration height="3" width="500" align="center">
<fill color="Black"/>
<rect x="0" y="-12" width="525" height="1"/>
</illustration>
<spacer length="0.7cm"/>
<para style="P1">999/95 Soi Phaholyothin 34 Senanikom Chatuchak District Bangkok
Tel.0-2941-7455 Email:[email protected] www.mdsoft.co.th</para>
<para style="P3" leading="80" fontcolor="white">.</para>
<para style="P2">Please send :
M.D.SOFT COMPANY LIMITED(accounting division/finance)
139/8,139/7 Ladprao 87 Lardplao road
Klong Chao Singh Wang Thonglang District, Bangkok 10310
(Tax invoice / receipt)</para>
</story>
</document>