Year End Statement PDF Example (Print Templates)
This guide gives you a generic Year to Date (YTD) statement that you can copy into the Print Templates component and customize. Use it when you are building a year end statement PDF for your donors. Print templates work together with the report module: the templates you add in Print Templates show up on the reports page in your dashboard.
The statement is built from three template units (a header, a footer and a body), which you then combine in a PDF template.
Step 1: set up the header
- In the admin, open the Print Templates component.
- On the Print Templates > Templates Units screen, click Add.
- Name the header, for example "YTD Header".
- Leave the Context field blank.
- Build the header in the WYSIWYG field. To start from the sample, click the <> icon, paste the code below and customize it.
<table border="0"> <tbody> <tr> <td><strong><img src="https://www.yourdomain.com/path/to/your-logo.png" height="81" width="203" /></strong></td> <td>123 Grand Ave.<br />Old Crown, ZY 78002</td> </tr> </tbody> </table>
- Click Save & Close.
Step 2: set up the footer
- Click Add again.
- Name the footer, for example "YTD Footer".
- Leave the Context field blank.
- Build the footer in the WYSIWYG field. To start from the sample, click the <> icon, paste the code below and customize it.
<table border="0"> <tbody> <tr> <td>123 Grand Ave.<br />Old Crown, ZY 78002</td> <td><a href="mailto:info@organizationdomain.com">info@organizationdomain.com</a><br />(123) 456-7890</td> <td>organizationdomain.com</td> </tr> </tbody> </table>
- Click Save & Close.
Step 3: set up the body
- Click Add.
- Name the body, for example "YTD Statement".
- In the Context field, choose Statements Report.
- Build the body in the WYSIWYG field. You can use the variables listed on the right side of the screen. These are the data that can be pulled from the report. To start from the sample, click the <> icon, paste the code below and customize it.
<p>{$rows.0.c_575}{*Household Name*}<br />{$rows.0.c_576}{*Address*}<br />{if !empty($rows.0.c_577)}{$rows.0.c_577}{*Phone*}<br />{/if}{if !empty($rows.0.c_578)}{$rows.0.c_578}{*Email*}<br />{/if}</p> <p>Dear {$rows.0.c_575}{*Household Name*},</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p> <p>John Doe, President</p> <p><strong>STATEMENT</strong></p> <table border="1"> <tbody> <tr> <td><strong>TOTALS</strong></td> <td></td> <td><strong>{$rows.0.vc_491}{*Gift Amount - Household Segment*}</strong></td> </tr> <tr> <td><strong>Date</strong></td> <td><strong>Designation</strong></td> <td><strong>Amount</strong></td> </tr> {foreach $rows as $row} <tr> <td>{$row.vc_486}{*Gift Date*}</td> <td>{$row.vc_488}{*Fund Name*}</td> <td>{$row.vc_490}{*Gift Amount*}</td> </tr> {/foreach} <tr> <td><strong>TOTALS</strong></td> <td></td> <td><strong>{$rows.0.vc_491}{*Gift Amount - Household Segment*}</strong></td> </tr> </tbody> </table> <p>This letter will serve as your receipt for tax purposes and certifies that you did not receive any goods or services in exchange for your donation. Please retain this letter for record of your donations.</p> <p>The <em>Organization Name</em> is a registered 501c(3) non-profit corporation with the IRS, tax ID number XX-XXXXXXX. Gifts to the <em>Organization Name</em> are tax-deductible and are used as designated whenever possible. We work hard to maintain accurate records; if you feel we've made an error in this statement please let us know. If you would like to have a digital copy of this receipt, please visit your account detail at <a href="https://organizationdomain.com/user/my-giving">https://organizationdomain.com/user/my-giving</a> or call our office at (123) 456-7890.</p> - Click Save & Close.
Note: The report name (Statements Report) and the variable ids in this sample, such asc_575andvc_486, are specific to the install the sample came from. Replace each one with the matching variable from the list on the right side of your own screen.
Build the PDF template
After you set up the parts of the statement, combine them in a PDF template.
- Open Print Templates > PDF Templates and click Add.
- Name the template and choose the Context. The context is the report the PDF template pulls data from.
- Set the other page settings for the PDF, then click Save & Close.
- Right-click the PDF template you just saved and click Manage PDF Template Pages.
- In the window, click Add.
- In the Header content field, choose the header you added. In the Body content field, choose the body. In the Footer content field, choose the footer.
- Under Context Settings, you can choose Household Id for Group Column and Household Name for Group Column Display.

Note: To test how the PDF will look, select a person under Preview Options.
Make the PDF available
A PDF template is bound to one report view (its context). When the template is marked active, it appears in that report view's Export menu as PDF: <template name>. An inactive template is a draft and is left out of the menu.
.png)
.png)