TEMPLATE (Ukuran Kertas)

  • A4 (Portrait)
    <template pageSize=”(8.5in,11in)” title=”Sale Quotation” author=”CV. JAYA ABADI” allowSplitting=”20″ showBoundary=”0″>
  • A4 (Landscape)
    <template pageSize=”(11in,8.5in)” title=”Sale Quotation” author=”CV. JAYA ABADI” allowSplitting=”20″ showBoundary=”0″>
  • A5 (Landspace) <template pageSize=”(21.0cm,14.85cm)” title=”Purchase Order” author=”CV. JAYA ABADI” allowSplitting=”20″ showBoundary=”0″>

FRAME (Posisi  peletakkan penulisan)

  • A4 (Portrait)
    <frame id=”first” x1=”20.0″ y1=”40.0″ width=”560″ height=”700″/>
  • A4 (Landscape)
    <frame id=”first” x1=”20.0″ y1=”40.0″ width=”750″ height=”520″/>
  • A5 ( Landspace )
    <frame id=”first” x1=”18.0″ y1=”10.0″ width=”560″ height=”360″/>

HEADER (Nama Perusahaan, Alamat dan Kontak)

  • A4 (Portrait)
    <setFont name=”Helvetica-Bold” size=”9″/>
    <drawString x=”20″ y=”765″>[[ company.name ]]</drawString>
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”20″ y=”755″>[[ company.rml_footer1 ]]</drawString>
    <drawString x=”20″ y=”745″>[[ company.rml_footer2 ]]</drawString>
  • A4 (landscape)
    <setFont name=”Helvetica-Bold” size=”9″/>
    <drawString x=”20″ y=”585″>[[ company.name ]]</drawString>
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”20″ y=”575″>[[ company.rml_footer1 ]]</drawString>
    <drawString x=”20″ y=”565″>[[ company.rml_footer2 ]]</drawString>
  • A5(Landscape)
    <setFont name=”Helvetica-Bold” size=”9″/>
    <drawString x=”20″ y=”395″>[[ company.name ]]</drawString>
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”20″ y=”385″>[[ company.rml_footer1 ]]</drawString>
    <drawString x=”20″ y=”375″>[[ company.rml_footer2 ]]</drawString>

FOOTER (Tanggal Cetak dan Penomoran Halaman)

  • A4 (Portrait)
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”1.0cm” y=”1cm”>Tanggal Cetak : [[ formatLang(time.strftime(“%Y-%m-%d %H:%M:%S”, time.localtime()),date_time = True) ]]</drawString>
    <drawString x=”19.0cm” y=”1cm”>Halaman <pageNumber/></drawString>
  • A4 (Landscape)
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”1.0cm” y=”1cm”>Tanggal Cetak : [[ formatLang(time.strftime(“%Y-%m-%d %H:%M:%S”, time.localtime()),date_time = True) ]]</drawString>
    <drawString x=”25.5cm” y=”1cm”>Halaman <pageNumber/></drawString>
  • A5 (landscape) 
    <setFont name=”Helvetica” size=”8″/>
    <drawString x=”20″ y=”20″>Tanggal Cetak : [[ formatLang(time.strftime(“%Y-%m-%d %H:%M:%S”, time.localtime()),date_time = True) ]]</drawString>
    <drawString x=”535″ y=”20″>Halaman <pageNumber/></drawString>

LINE (Garis Header)

  • A5 (landscape)
    <lineMode width=”0.7″/>
    <lines>20 370 575 370</lines>

Format line : x1 y1 x2 y2 (Untuk mudahnya buat titik pada kertas)