{
    "options":
    {
        "enable-debug-report-save": false,
        "output-mode": "binary"
    },
    "report-generator":
    {
        "id": "request_example",
        "uri": "embedded"
    },
    "input-data":
    {
        "ORGANIZATION": "Акционерное общество Негосударственный пенсионный фонд «XXXXX»",
        "CLINAME": "Петров Петр Петрович",
        "DIRECTORNAME": "Иванов И.И.",
        "CONDITIONAL_TAG_TRUE": "true",
        "CONDITIONAL_TAG_FALSE": "false",
        "TESTTAG": "TEST TAG"
    },
    "embedded-report-generator":
    {
        "commands":
        [
            {
                "name": "NewPage"
            },
            {
                "name": "setCoordinateMode",
                "params":
                {
                    "mode": "millimeters"
                }
            },
            {
                "name": "setPageMargins",
                "params":
                {
                    "left": 10,
                    "right": 10,
                    "top": 10,
                    "bottom": 10
                }
            },
            {
                "name": "SetPrintFont",
                "params":
                {
                    "font_id": "TimesNewRomanPS-BoldMT",
                    "size": 12
                }
            },
            {
                "name": "setPageTemplate",
                "params":
                {
                    "template":
                    {
                        "uri": "local",
                        "id": "example_logo_page"
                    }
                }
            },
            {
                "name": "setCurrentY",
                "params":
                {
                    "value": 30
                }
            },
            {
                "name": "setColor4Text",
                "params":
                {
                    "color": "#ff0000"
                }
            },
            {
                "name": "SetPrintFont",
                "params":
                {
                    "font_id": "TimesNewRomanPS-BoldMT",
                    "size": 24
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 190,
                    "h": 5,
                    "txt": "Заголовок",
                    "border": "0",
                    "ln": 0,
                    "align": "C",
                    "clipping": false,
                    "vert_align": "C"
                }
            },
            {
                "name": "LineBreak",
                "params":
                {
                    "h": 10
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 190,
                    "h": 6,
                    "txt": "Текст обрезаемый границами ячейки",
                    "border": "1",
                    "ln": 0,
                    "align": "C",
                    "clipping": true,
                    "vert_align": "C"
                }
            },
            {
                "name": "SetPrintFont",
                "params":
                {
                    "font_id": "TimesNewRomanPS-BoldMT",
                    "size": 12
                }
            },
            {
                "name": "LineBreak",
                "params":
                {
                    "h": 10
                }
            },
            {
                "name": "SetPrintFont",
                "params":
                {
                    "font_id": "TimesNewRomanPSMT",
                    "size": 10
                }
            },
            {
                "name": "PrintMultiLineCell",
                "params":
                {
                    "w": 190,
                    "h": 3.5,
                    "txt": "[ORGANIZATION], именуемый в дальнейшем «Фонд», в лице генерального директора Иванова Ивана Ивановича,  действующего  на  основании  доверенности  № 11142 от 02.04.2018 г., с  одной  стороны, и [CLINAME], именуемый в дальнейшем «Участник», с другой стороны, заключили настоящее Соглашение о нижеследующем:",
                    "border": "0",
                    "indent": 15,
                    "align": "J",
                    "fill": false,
                    "ln": 2
                }
            },
            {
                "name": "LineBreak",
                "params":
                {
                    "h": 3.5
                }
            },
            {
                "name": "setColor4Text",
                "params":
                {
                    "color": "#00ff00"
                }
            },
            {
                "name": "PrintMultiLineCell",
                "params":
                {
                    "w": 190,
                    "h": 3.5,
                    "txt": "Все споры и разногласия, которые могут возникнуть из настоящего Соглашения или в связи с ним, разрешаются путем переговоров. В случае недостижения согласия путем переговоров, споры передаются на рассмотрение суда по месту нахождения Фонда (г. Москва).",
                    "border": "0",
                    "indent": 15,
                    "align": "J",
                    "fill": false,
                    "ln": 2
                }
            },
            {
                "name": "Line",
                "params":
                {
                    "x1": "210/2",
                    "y1": 0,
                    "x2": "210/2",
                    "y2": 297,
                    "color": "#ff0000",
                    "width": 1
                }
            },
            {
                "name": "Line",
                "params":
                {
                    "x1": 0,
                    "y1": "297/2",
                    "x2": 210,
                    "y2": "297/2",
                    "color": "#ff0000",
                    "width": 0.1
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": "210/2-40/2",
                    "y": "297/2-3.5/2 - 0.00"
                }
            },
            {
                "name": "setCellMargin",
                "params":
                {
                    "margin": 0
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 40,
                    "h": 3.5,
                    "txt": "центр",
                    "border": "1",
                    "ln": 0,
                    "align": "C",
                    "fill": false,
                    "clipping": false,
                    "vert_align": "C"
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": 150,
                    "y": 220
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 40,
                    "h": 3.5,
                    "txt": "/[DIRECTORNAME]",
                    "border": "0",
                    "ln": 0,
                    "align": "C",
                    "fill": false,
                    "clipping": false,
                    "vert_align": "C"
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": "150-40",
                    "y": "220+3.5"
                }
            },
            {
                "name": "Line",
                "params":
                {
                    "x1": "[PDF:currentX]",
                    "y1": "[PDF:currentY]",
                    "x2": "[PDF:currentX] + 50",
                    "y2": "[PDF:currentY]",
                    "color": "#ff0000",
                    "width": 0.1
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 50,
                    "h": 3.5,
                    "txt": "подпись",
                    "border": "0",
                    "ln": 0,
                    "align": "C",
                    "fill": false,
                    "clipping": false,
                    "vert_align": "C"
                }
            },
            {
                "name": "Circle",
                "params":
                {
                    "x": 135,
                    "y": 250,
                    "r": 15,
                    "draw": false,
                    "fill": false,
                    "draw_color": "#ff0000",
                    "fill_color": "#ff0000",
                    "linewidth": 0.1
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": 135,
                    "y": 250
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "txt": "М.П.",
                    "border": "1",
                    "ln": 0,
                    "align": "C",
                    "fill": false,
                    "clipping": false
                }
            },
            {
                "name": "NewPage",
                "params":
                {
                    "orientation": "L"
                }
            },
            {
                "name": "setPageMargins",
                "params":
                {
                    "left": 0,
                    "right": 0,
                    "top": 0,
                    "bottom": 0
                }
            },
            {
                "name": "PrintText",
                "params":
                {
                    "text": "Номер страницы: [PDF:currPageNum]"
                }
            },
            {
                "name": "LineBreak",
                "params":
                {
                    "h": 4
                }
            },
            {
                "name": "LineBreak",
                "params":
                {
                    "h": 4
                }
            },
            {
                "name": "PrintText",
                "params":
                {
                    "text": "Current X: [PDF:currentX], Y: [PDF:currentY]"
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": 10,
                    "y": 100
                }
            },
            {
                "name": "PrintText",
                "params":
                {
                    "x": 10,
                    "y": 100,
                    "text": "Подчеркнутый текст"
                }
            },
            {
                "name": "underline",
                "params":
                {
                    "x": 10,
                    "y": 100,
                    "text": "Подчеркнутый текст"
                }
            },
            {
                "name": "setRotate",
                "params":
                {
                    "angle": 45,
                    "x": 105,
                    "y": 130
                }
            },
            {
                "name": "setColor4Text",
                "params":
                {
                    "r": 150,
                    "g": 50,
                    "b": 150,
                    "color": "#963296"
                }
            },
            {
                "name": "setCurrentXY",
                "params":
                {
                    "x": 0,
                    "y": 0
                }
            },
            {
                "name": "PrintCell",
                "params":
                {
                    "w": 190,
                    "h": 30,
                    "txt": "ROTATED TEXT",
                    "border": "1",
                    "ln": 0,
                    "align": "C",
                    "fill": false,
                    "clipping": false,
                    "vert_align": "C"
                }
            },
            {
                "name": "setRotate",
                "params":
                {
                    "angle": 0,
                    "x": 0,
                    "y": 0
                }
            },
            {
                "name": "NewPage"
            },
            {
                "name": "setPageTemplate",
                "params":
                {
                    "template":
                    {
                        "uri": "local",
                        "id": "example_logo_page"
                    }
                }
            }
        ]
    }
}