You are browsing myClubhouse Knowledge Base
PDF Document Templates
Sometimes you want to create a document that has some myClubhouse fields in it. While this can often be achieved with a mail merge, for simple documents like Membership Cards, this can seem a little unnecessary and tricky to do on a more ad-hoc basis. PDF Document Templates allow you to upload a template and choose which fields will be included and where. You can then generate the documents as needed, and in some cases, allow members to do it themselves.
In this example, we are going to create a Subscription Card that shows some basic details about the Subscription it is attached to.
Creating a Template
Create your document and save it as a PDF.
Log in to your myClubhouse site.
Navigate to Admin > Settings > PDF Document Templates.
Click “Add Template”.
Complete the wizard:
Name: The name of the PDF template.
Description: Enter a short description about the template.
Type: Select the type of document you are generating. This will impact which fields are available.
User-based Document: For documents relating to individual users.
Subscription-based Document: For documents that are linked to individual Subscriptions.
Membership Card: For print at home membership cards for members.
Horse Membership Card: For print at home membership cards for horses.
PDF Template File: Click “Choose File” and locate the PDF created in step 1.
Template Layout Elements: Each element will be populated with a field from myClubhouse that relates to the user/Subscription that it is being generated for. You set where you want them to be on the page so they can line up with your PDF design.
Click “Add”.
Complete the wizard:
Field: Select the myClubhouse field that will be populating this element.
Format: Some fields, especially dates, can be shown in different formats, so you need to choose an option here.
Position: Set the position for the element based on the distance from the top left hand corner of the page. NB - It’s unlikely that you will get this right on the first try, there is some trial and error involved. So take a rough estimate and we will come and tweak it later as necessary.
Text Style: Set the styling for the element, likely matching the text style from your template.
Font Family: Select the font for the field.
Font Size: Select the font size for the field.
Colour: Select the text colour.
Style: Check any stylings you want to add to the text for this field.
Text Alignment: Choose how the text is aligned in relation to the rectangle defined in the “Position” field above.
Horizontal: Choose to have left, centred, or right alignment for this field.
Vertical: Choose to have the text be centred, put to the top, or the to the bottom of the rectangle for this element.
OK: Once happy with the details, click “OK”.
Repeat until you’ve added all of the fields for your template.
OK: Once happy with the details, click “OK” to save the template.
You now need to see how the PDF looks with the fields filled in.
Click “Test”.
Complete the wizard:
Subscription: Start typing the name of a member and select their name from the dropdown and the appropriate Subscription if there is more than one.
Generate: Once you have selected a member, click “Generate”.
Open the PDF file that has been generated and check the fields.
Note that in the screenshot above, the fields do not correctly align with their headings, so we need to return to myClubhouse and click “Edit” next to the template.
Click “Edit” next to the Template Layout Elements to adjust their placement.
Click “OK”.
Repeat steps j-m to see if the fields are now in the right place.
Keep making small adjustments until you are happy with the placement of the Fields.
Using a Template
User and Subscription based documents can be generated in bulk from the Member Directory and Browse Subscriptions respectively. Membership Cards (for humans and horses) can be generated in bulk from Browse Subscriptions or Browse Horse Subscriptions, as appropriate. NB - there is an extra step before you can generate Membership Cards, as covered in this guide: Membership Cards
This is an example from the Subscription Card Template created above:
Navigate to Subscriptions > Browse Subscriptions.
Filter the results to show the members you want to generate PDF documents for.
Click “Generate Documents” and select the Template from the dropdown.
The PDF will be downloaded, with all the cards in a single PDF document.
Print or distribute as necessary.
Membership Cards can also be generated individually. Read this guide to learn more: Membership Cards