{ "title": "Block", "name": "block", "description":"A block acts as a placeholder in PDF templates. It can hold text, multiline text, images or pdf's. In this file you find the general properties for all block types. See details in the derived block-type schemas.", "type":"object", "properties":{ "name": { "description": "Name of the block. Must unique within each page. [ ] / are not allowed.", "type": "string", "maxLength": 125, "required": true }, "rect":{ "description": "The block coordinates in DTP points. [ LowerLeftX llY UpperRightX urY] x-increases to the right, y counts upwards, The coordinate system in PDF starts in the lower left corner of a page. Calculation with 72 DPI: 1pt = 1/72inch = 25.4/72 mm = 0.3528 mm", "type": "array", "properties":{ "type": "number" }, "minItems": 4, "maxItems": 4, "required": true }, "backgroundcolor": { "description": "Background color of the Block.", "type": "string", "format": "color" }, "bordercolor": { "description": "Draws a rectangle around the block in the given color.", "type": "number", "format": "color" }, "linewidth": { "description": "Border line width. Only used if border color is set.", "type": "number", "default": 1 }, "orientate": { "description": "Orientation of the content. Only used for NON-textflow", "type": "string", "enum": ["north","east","south","west"], "default": "north" }, "position": { "description": "Reference point for content placement. Defaults to lower-left corner[0,0]. Values are [x,y] percentages from the start point. E.G. top-right: [100,100] center: [50,50] bottom-center [50,0]. NOT available for textflow blocks", "type": "array", "items":{ "type": ["number", "string"] }, "minItems": 2, "maxItems": 2 }, "rotate": { "description": "Rotation angle(degrees) by which the block will be rotated counter-clockwise. The center of the rotation is the position-value, which defaults to lower-left corner.", "type": "number", "default": 0 } } }