A JSON to PDF template that creates a letter document is a tool that allows users to generate personalized PDF letters based on JSON data. The template defines the layout and content of the letter, while the JSON data specifies the specific values and variables that will be used to populate the template.
Overall, a JSON to PDF template for creating letter documents can be a valuable tool for automating the letter generation process, saving time and resources, and providing a professional-looking, personalized document.
documentSettings - A JSON object which contains the settings of the template (primaryHEXColour, secondaryHEXColour, textHEXColour, font, documentName, logo, logoType, logoWidth, margins, headSep, footSkip, showframe, header, footer).
font - An optional string which contains the font of the document. Possible options are: 'helvetica', 'avant garde', 'sans serif', 'charter', 'open sans', 'bera', 'venturis', 'raleway', 'overlock', 'roboto', 'spectral', 'clear sans', 'noto sans', 'noto mono', 'josefin', 'bera sans', 'latin modern', 'theano modern', 'droid sans', 'fira sans', 'XCharter', 'bookman', 'gyre bonum', 'gyre schola', 'gyre termes'.
fontSize - An optional integer which contains the font size of the document. Possible options are: 8, 9, 10, 11, 12, 14.
primaryHEXColour - An optional string which contains the primary font colour of the document.
secondaryHEXColour - An optional string which contains the secondary font colour of the document.
textHEXColour - An optional string which contains the text font colour of the document.
documentName - An optional string for the name of the document.
logo - An optional string which contains base64 encoded jpg or png image of your logo.
logoType - An optional string which contains the type of logo image. Possible options are: 'jpg' or 'png'.
logoWidth - An optional string which contains the width of the logo (in cm).
signature - An optional string which contains base64 encoded jpg or png image of the signature.
signatureType - An optional string which contains the type of signature image. Possible options are: 'jpg' or 'png'.
signatureWidth - An optional string which contains the width of the signature (in cm).
topMargin - An optional string containing the top margin size (in cm).
rightMargin - An optional string containing the right margin size (in cm).
bottomMargin - An optional string containing the bottom margin size (in cm).
leftMargin - An optional string containing the left margin size (in cm).
headheight - An optional string relating to the height of the header (in cm). See LaTeX geometry package documentation for more information on this parameter.
headSep - An optional string relating to the space between the header and the beginning of the document (in cm). See LaTeX geometry package documentation for more information on this parameter.
footSkip - An optional string relating to the space between the end of the document and the footer (in cm). See LaTeX geometry package documentation for more information on this parameter.
includehead - A boolean expression which determines whether the header is part of the top margin (false) or below it (true).
includehead - A boolean expression which determines whether the footer is part of the bottom margin (false) or below it (true).
showFrame - A boolean expression (true/false) to show the frame of the document.
header - An object containing settings to control the header.
headerLine - A boolean expression that generates a horizontal line between the header and the beginning of the document.
leftContent - The content that appears on the left-hand side of the header. Can contain LaTeX commands, text or simply 'logo'.
centreContent - The content that appears in the centre of the header. Can contain LaTeX commands, text or simply 'logo'.
rightContent - The content that appears of the right-hand side of the header. Can contain LaTeX commands, text or simply 'logo'.
adjustMargin - An optional string containing whether the header margin needs to be adjusted sideways (in cm).
footer - An object containing settings to control the footer.
footerLine - A boolean expression that generates a horizontal line between the footer and the end of the document.
leftContent - The content that appears on the left-hand side of the footer. Can contain LaTeX commands, text or simply 'logo'.
centreContent - The content that appears in the centre of the footer. Can contain LaTeX commands, text or simply 'logo'.
rightContent - The content that appears of the right-hand side of the footer. Can contain LaTeX commands, text or simply 'logo'.
adjustMargin - An optional string containing whether the header margin needs to be adjusted sideways (in cm).
documentContent - A JSON object which contains the content of the template (firstColumnDetails, secondColumnDetails, totalPayable, invoiceDetails, text).
senderAddressLines - An array of strings which contains the sender's address which appears on the right hand side. Can contain LaTeX commands.
recipientAddressLines - An array of strings which contains the recipient's address which appears on the left hand side. Can contain LaTeX commands.
signatureStart - An optional string for the start of the signature. Can contain LaTeX commands.
signatureEnd - An optional string for the end of the signature. Can contain LaTeX commands.
body - An optional array of JSON objects which contains the body for the document.
type - A required string which contains the type of text for the body of the document. Possible options are: 'heading', 'section', 'subsection', 'paragraph', 'newpage', 'enumerate', 'itemize', 'table'.
content - A required string or array of strings which contains the text for the body of the document. Can contain LaTeX commands. Note that in an event of a table, this contains the key-name for the table.
order - A required number which determines the order of the text.