Advanced PDF to Print Giftwrap Message

<?xml version=”1.0″?><!DOCTYPE pdf PUBLIC “-//big.faceless.org//report” “report-1.1.dtd”> 

<pdfset> 

  <#list record.item as item> 

    <#if item.custcol6!=”> 

      <pdf> 

<head> 

<link name=”NotoSans” type=”font” subtype=”truetype” src=”${nsfont.NotoSans_Regular}” src-bold=”${nsfont.NotoSans_Bold}” src-italic=”${nsfont.NotoSans_Italic}” src-bolditalic=”${nsfont.NotoSans_BoldItalic}” bytes=”2″ /> 

  <link name=”NotoSansArabic” type=”font” subtype=”opentype” src=”${nsfont.NotoSansArabic_Regular}” src-bold=”${nsfont.NotoSansArabic_Bold}” bytes=”2″ subset=”false” /> 

<#if .locale == “zh_CN”> 

<link name=”NotoSansCJKsc” type=”font” subtype=”opentype” src=”${nsfont.NotoSansCJKsc_Regular}” src-bold=”${nsfont.NotoSansCJKsc_Bold}” bytes=”2″ /> 

<#elseif .locale == “zh_TW”> 

<link name=”NotoSansCJKtc” type=”font” subtype=”opentype” src=”${nsfont.NotoSansCJKtc_Regular}” src-bold=”${nsfont.NotoSansCJKtc_Bold}” bytes=”2″ /> 

<#elseif .locale == “ja_JP”> 

<link name=”NotoSansCJKjp” type=”font” subtype=”opentype” src=”${nsfont.NotoSansCJKjp_Regular}” src-bold=”${nsfont.NotoSansCJKjp_Bold}” bytes=”2″ /> 

<#elseif .locale == “ko_KR”> 

<link name=”NotoSansCJKkr” type=”font” subtype=”opentype” src=”${nsfont.NotoSansCJKkr_Regular}” src-bold=”${nsfont.NotoSansCJKkr_Bold}” bytes=”2″ /> 

<#elseif .locale == “th_TH”> 

<link name=”NotoSansThai” type=”font” subtype=”opentype” src=”${nsfont.NotoSansThai_Regular}” src-bold=”${nsfont.NotoSansThai_Bold}” bytes=”2″ /> 

</#if> 

    <macrolist> 

        <macro id=”nlheader”> 

            &nbsp; 

        </macro> 

    </macrolist> 

    <style type=”text/css”>* { 

<#if .locale == “zh_CN”> 

font-family: NotoSans, NotoSansCJKsc, sans-serif; 

<#elseif .locale == “zh_TW”> 

font-family: NotoSans, NotoSansCJKtc, sans-serif; 

<#elseif .locale == “ja_JP”> 

font-family: NotoSans, NotoSansCJKjp, sans-serif; 

<#elseif .locale == “ko_KR”> 

font-family: NotoSans, NotoSansCJKkr, sans-serif; 

<#elseif .locale == “th_TH”> 

font-family: NotoSans, NotoSansThai, sans-serif; 

<#else> 

font-family: NotoSansArabic, sans-serif; 

</#if> 

table { 

font-size: 9pt; 

table-layout: fixed; 

        th { 

            font-weight: bold; 

            font-size: 8pt; 

            vertical-align: middle; 

            padding: 5px 6px 3px; 

            background-color: #e3e3e3; 

            color: #333333; 

        } 

        td { 

            padding: 4px 6px; 

        } 

td p { align:left } 

        b { 

            font-weight: bold; 

            color: #333333; 

        } 

        table.header td { 

            padding: 0px; 

            font-size: 10pt; 

        } 

        table.footer td { 

            padding: 0px; 

            font-size: 8pt; 

        } 

        table.itemtable th { 

            padding-bottom: 10px; 

            padding-top: 10px; 

        } 

        table.body td { 

            padding-top: 2px; 

        } 

        table.total { 

            page-break-inside: avoid; 

        } 

        tr.totalrow { 

            background-color: #e3e3e3; 

            line-height: 200%; 

        } 

        td.totalboxtop { 

            font-size: 12pt; 

            background-color: #e3e3e3; 

        } 

        td.addressheader { 

            font-size: 8pt; 

            padding-top: 6px; 

            padding-bottom: 2px; 

        } 

        td.address { 

            padding-top: 0px; 

        } 

        td.totalboxmid { 

            font-size: 28pt; 

            padding-top: 20px; 

            background-color: #e3e3e3; 

        } 

        td.totalboxbot { 

            background-color: #e3e3e3; 

            font-weight: bold; 

        } 

        span.title { 

            font-size: 28pt; 

        } 

        span.number { 

            font-size: 16pt; 

        } 

        span.itemname { 

            font-weight: bold; 

            line-height: 150%; 

        } 

        hr { 

            width: 100%; 

            color: #d3d3d3; 

            background-color: #d3d3d3; 

            height: 1px; 

        } 

</style> 

</head> 

<body header=”nlheader” header-height=”0%” padding=”0in 0in 0in 0in” size=”A5″> 

    <table class=”body” style=”width: 100%;”><tr height=”50%”> 

<td align=”center” colspan=”1000″ style=” border-bottom: 0 px black;  width: 100%;”>&nbsp;</td> 

</tr> 

<tr height=”7.22%”> 

<td align=”center” colspan=”156″>&nbsp;</td> 

<td align=”center” colspan=”688″ style=” border-bottom: 0 px black;”>&nbsp;</td> 

<td align=”center” colspan=”156″>&nbsp;</td> 

</tr> 

<tr height=”6.57%”> 

<td align=”center” colspan=”156″>&nbsp;</td> 

<td colspan=”688″ padding=”0.06in 0.12in ” style=” border-left: 0 px black; border-right: 0 px black; font-size: 10pt;”><i>To </i><br/> ${item.custcol6}</td> 

<td align=”center” colspan=”156″></td> 

</tr> 

<tr height=”16.54%”> 

<td align=”center” colspan=”156″>&nbsp;</td> 

<td colspan=”688″  padding=”0.08in 0.12in ” style=” border-left: 0 px black; border-right: 0 px black; font-size: 10pt; “><i>Message </i><br/><p style=”font-size: 12pt;”> <b>${item.custcol_jj_gift_message}</b></p></td> 

<td align=”center” colspan=”156″></td> 

</tr> 

<tr height=”6.57%”> 

<td align=”center” colspan=”156″>&nbsp;</td> 

<td colspan=”688″ padding=”0.06in 0.12in ” style=” border-left: 0 px black;  border-bottom: 0 px black; border-right: 0 px black; font-size: 10pt;”><i>From </i><br/> ${item.custcol_jj_gift_msg_from}</td> 

<td align=”center” colspan=”156″></td> 

</tr> 

<tr height=”13.10%”> 

<td align=”center” colspan=”156″>&nbsp;</td> 

<td align=”center” colspan=”688″>&nbsp;</td> 

<td align=”center” colspan=”156″>&nbsp;</td> 

</tr></table> 

</body> 

</pdf> 

      </#if> 

      </#list> 

      </pdfset> 

Leave a comment

Your email address will not be published. Required fields are marked *