A JSON to PDF template is a tool that allows users to generate PDF documents based on JSON data. The template defines the layout of the PDF document, while the JSON data specifies the specific values and variables that will be used to populate the template. The resulting PDF document can be customized and automated, making it ideal for generating flyers, brochures, and other marketing materials.
One use case for this tool would be in creating a flyer for an upcoming event or promotion. The JSON data could include details such as the event name, date, time, location, and ticket prices. The template would be designed to include graphics and text that highlight these key details, as well as any other relevant information, such as speakers or sponsors.
Another potential use case would be in creating customized flyers for different target audiences. The JSON data could include variables such as demographic information or purchasing behaviour, which could be used to generate personalized content for each flyer. For example, a clothing retailer could use this tool to create different flyers for men and women, each highlighting products and promotions that are most relevant to that demographic.
Overall, a JSON to PDF template that creates a flyer can be a powerful tool for creating customizable, professional-looking marketing materials. It can save time and resources by automating the design and production process while allowing flexibility and personalization.
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.
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).
mainImage - An optional string which contains base64 encoded jpg or png main image.
mainImageType - An optional string which contains the type of main image. Possible options are: 'jpg' or 'png'.
mainImageWidth - An optional string which contains the width of the main image (in cm).
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).
documentContent - A JSON object which contains the content of the template (firstColumnDetails, secondColumnDetails, totalPayable, invoiceDetails, text).
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. This template only accepts 'tikzNode'.
content - A required string or array of strings which contains the tikzpicture node. See example in the json. Can contain LaTeX commands.
order - A required number which determines the order of the text.