API Docs | PvFreeForm | Tajima Software Solutions Inc.

With the /PvFreeForm endpoint user can add/edit for print type text/template

POST /api/PvFreeForm/EditFreeFormPvData
Request Example
Add/Edit Text
{
    "DPI": 72,
    "DesignerMode": null, // Possible values: "Basic", "Advanced"
    "Elements": [
        {
            "Identity": {
                "AssetType": 0, // 0 = None, 1 = Design, 2 = Template
                "ElementName": ""
            },
            "PaintingWays": [ // Color information
                {
                    "Color": {
                        "Name": "",
                        "Type": 0, // 0 = Rgb, 1 = Cmyk, 2 = SpotRgb, 3 = SpotCmyk, 4 = Gray, 5 = SpotGray
                        "Values": [0.0392156862745098, 0.0392156862745098, 1]
                    },
                    "FillMode": 1, // 0 = Alternate, 1 = Winding
                    "FillType": 0, // 0 = Solid, 1 = Gradient, 2 = Pattern
                    "PaintingWayType": 0 // 0 = Fill, 1 = Stroke
                },
                ...
                {
                    "Color": {
                        "Name": "",
                        "Type": 0, // 0 = Rgb, 1 = Cmyk, 2 = SpotRgb, 3 = SpotCmyk, 4 = Gray, 5 = SpotGray
                        "Values": [0, 0, 1]
                    },
                    "PaintingWayType": 1, // 0 = Fill, 1 = Stroke
                    "StrokeType": 0, // 0 = Solid, 1 = Pattern
                    "Width": 2 // Unit: pixels, Range: min = 0, max = 5
                }
            ],
            "Properties": {
                "Envelope": {
                    "Bend": 0.5, // Range: min = -1, max = 1
                    "Type": "Arc" // 0 = Arc, 1 = Arch, 2 = BridgeBottom, 3 = DoubleBridge, 4 = ArcUpper
                },
                "FontFamily": "Arial",
                "FontHeight": 45, // Unit: pixels
                "FontStyle": "Normal",
                "IsSvgFont": false,
                "Opacity": 1,
                "Text": "Tajima"
            },
            "Transformation": { // This is and advaned feature, rarely used and should have these values
                "CenterX": 0, // Unit: pixels
                "CenterY": 0, // Unit: pixels
                "Rotation": 0, // Unit: degrees
                "ScaleX": 1,
                "ScaleY": 1
            },
            "Type": 2 // 0 = Group, 1 = Shape, 2 = Text, 3 = Bitmap
        }
    ]
}
            
Response Example
{
    "Data": {
        "DPI": 72,
        "DesignerMode": null, // Possible values: "Basic", "Advanced"
        "Elements": [
            {
                "Identity": {
                    "AssetType": 0, // 0 = None, 1 = Design, 2 = Template
                    "ElementName": ""
                },
                "PaintingWays": [ // Color information
                    {
                        {
                            "Color": {
                                "Name": "",
                                "Type": 0, // 0 = Rgb, 1 = Cmyk, 2 = SpotRgb, 3 = SpotCmyk, 4 = Gray, 5 = SpotGray
                                "Values": [0.0392156862745098, 0.0392156862745098, 1]
                            },
                            "FillMode": 1, // 0 = Alternate, 1 = Winding
                            "FillType": 0, // 0 = Solid, 1 = Gradient, 2 = Pattern
                            "PaintingWayType": 0 // 0 = Fill, 1 = Stroke
                        },
                        {
                            "Color": {
                                "Name": "",
                                "Type": 0, // 0 = Rgb, 1 = Cmyk, 2 = SpotRgb, 3 = SpotCmyk, 4 = Gray, 5 = SpotGray
                                "Values": [0, 0, 1]
                            },
                            "PaintingWayType": 1, // 0 = Fill, 1 = Stroke
                            "StrokeType": 0, // 0 = Solid, 1 = Pattern
                            "Width": 2.0 // Unit: pixels, Range: min = 0, max = 5
                        }
                    }
                ],
                "Properties": {
                    "Envelope": {
                        "Bend": 0.5, // Range: min = -1, max = 1
                        "Type": 0 // 0 = Arc, 1 = Arch, 2 = BridgeBottom, 3 = DoubleBridge, 4 = ArcUpper
                    },
                    "FontFamily": "Arial",
                    "FontHeight": 45.0, // Unit: pixels
                    "FontStyle": "Normal",
                    "IsSvgFont": false,
                    "Opacity": 1.0,
                    "Text": "Tajima"
                },
                "Shapes": [
                    {
                        "SvgData": "M 8.46 23.74L -11.36 3.40L -23.34 17.03L -26.39 14.74L 6.72 -15.54L 8.73 -12.30L -5.98 -1.53L 12.54 20.01L 8.46 23.74zM 39.12 1.18C 37.74 3.02 36.35 4.52 34.93 5.69C 33.53 6.87 31.95 7.90 30.15 8.80C 27.23 10.37 24.71 11.11 22.52 10.99C 20.31 10.91 18.65 10.09 17.56 8.47C 16.93 7.52 16.66 6.45 16.76 5.25C 16.87 4.05 17.30 2.88 18.04 1.74C 18.81 0.61 19.80 -0.47 21.01 -1.50C 21.92 -2.22 23.37 -3.21 25.38 -4.45C 29.55 -6.79 32.63 -8.56 34.58 -9.87C 34.42 -10.39 34.31 -10.72 34.26 -10.86C 33.70 -12.37 32.76 -13.23 31.42 -13.42C 29.61 -13.67 27.23 -13.16 24.32 -11.86C 21.64 -10.57 19.84 -9.28 18.90 -8.04C 17.99 -6.80 17.66 -5.29 17.91 -3.53L 12.59 -0.85C 12.13 -2.53 12.17 -4.14 12.71 -5.69C 13.29 -7.24 14.51 -8.88 16.40 -10.57C 18.35 -12.24 20.81 -13.80 23.79 -15.21C 26.80 -16.53 29.36 -17.31 31.42 -17.60C 33.50 -17.85 35.10 -17.78 36.22 -17.41C 37.32 -17.02 38.22 -16.36 38.90 -15.44C 39.28 -14.85 39.73 -13.71 40.24 -12.03L 41.78 -6.99C 42.85 -3.47 43.63 -1.28 44.13 -0.40C 44.63 0.46 45.32 1.23 46.18 1.91L 41.08 3.53C 40.31 2.93 39.65 2.15 39.12 1.18zM 35.65 -6.97C 33.89 -5.67 31.19 -4.01 27.58 -1.92C 25.58 -0.67 24.23 0.34 23.51 1.05C 22.80 1.78 22.36 2.51 22.19 3.26C 22.03 4.00 22.12 4.67 22.47 5.27C 23.00 6.17 23.91 6.66 25.19 6.75C 26.47 6.84 28.02 6.40 29.85 5.47C 31.68 4.59 33.19 3.53 34.39 2.28C 35.62 1.05 36.40 -0.24 36.71 -1.59C 36.94 -2.63 36.76 -3.96 36.15 -5.61L 35.65 -6.97zM 46.64 -26.64L 45.70 -31.13L 52.60 -32.37L 53.28 -27.82L 46.64 -26.64zM 48.49 10.66L 48.44 7.18C 49.42 7.14 50.18 7.05 50.70 6.92C 51.66 6.69 52.31 6.26 52.65 5.63C 53.01 5.01 52.97 3.66 52.54 1.57L 47.52 -22.43L 53.92 -23.57L 57.55 0.76C 57.97 3.60 57.82 5.64 57.11 6.89C 56.25 8.53 54.58 9.60 52.08 10.16C 50.87 10.45 49.68 10.62 48.49 10.66zM 63.55 -28.93L 63.28 -33.48L 70.27 -33.70L 70.27 -29.13L 63.55 -28.93zM 65.20 -1.32L 63.81 -24.61L 70.28 -24.81L 70.33 -1.48L 65.20 -1.32zM 78.14 -1.15L 80.15 -24.39L 85.89 -23.74L 85.44 -20.51C 86.78 -21.47 88.47 -22.14 90.52 -22.48C 92.61 -22.79 94.91 -22.66 97.40 -22.08C 100.15 -21.36 102.30 -20.38 103.81 -19.17C 105.30 -17.94 106.18 -16.59 106.45 -15.14C 110.16 -16.67 114.31 -16.47 118.76 -14.48C 122.17 -12.80 124.44 -10.86 125.57 -8.76C 126.66 -6.64 126.49 -4.44 125.10 -2.16L 116.76 11.52L 112.34 8.99L 119.27 -3.98C 120.01 -5.37 120.37 -6.47 120.33 -7.27C 120.31 -8.07 119.92 -8.90 119.16 -9.77C 118.38 -10.63 117.34 -11.37 116.02 -11.98C 113.62 -13.05 111.41 -13.38 109.42 -12.99C 107.44 -12.57 106.06 -11.22 105.25 -8.96L 100.65 3.79L 95.77 2.19L 100.09 -12.34C 100.59 -14.02 100.48 -15.43 99.74 -16.55C 98.99 -17.68 97.49 -18.53 95.23 -19.08C 93.49 -19.47 91.82 -19.51 90.23 -19.21C 88.67 -18.90 87.48 -18.23 86.65 -17.22C 85.83 -16.21 85.27 -14.65 84.97 -12.54L 83.23 -0.56L 78.14 -1.15zM 139.75 27.22C 137.54 26.59 135.64 25.84 134.04 24.93C 132.43 24.05 130.90 22.93 129.42 21.58C 126.91 19.42 125.31 17.33 124.65 15.24C 123.92 13.14 124.10 11.30 125.22 9.71C 125.88 8.78 126.78 8.14 127.93 7.80C 129.10 7.48 130.35 7.46 131.67 7.75C 133.01 8.05 134.37 8.59 135.76 9.36C 136.76 9.95 138.21 10.94 140.08 12.37C 143.76 15.43 146.52 17.68 148.44 19.02C 148.87 18.69 149.14 18.47 149.25 18.37C 150.46 17.31 150.92 16.12 150.63 14.80C 150.20 13.02 148.87 10.98 146.62 8.73C 144.45 6.69 142.60 5.47 141.11 5.04C 139.63 4.63 138.10 4.87 136.54 5.73L 132.14 1.73C 133.54 0.70 135.06 0.15 136.70 0.10C 138.35 0.08 140.32 0.64 142.58 1.80C 144.84 3.02 147.18 4.76 149.56 7.03C 151.87 9.38 153.52 11.48 154.53 13.30C 155.51 15.15 156.01 16.67 156.06 17.85C 156.10 19.02 155.80 20.09 155.18 21.06C 154.77 21.63 153.87 22.46 152.48 23.54L 148.33 26.78C 145.43 29.03 143.66 30.55 143.02 31.33C 142.40 32.11 141.93 33.02 141.60 34.07L 138.26 29.89C 138.54 28.96 139.04 28.06 139.75 27.22zM 146.11 21.06C 144.27 19.89 141.75 17.95 138.51 15.33C 136.62 13.92 135.20 13.02 134.27 12.60C 133.34 12.20 132.50 12.05 131.74 12.16C 130.99 12.27 130.40 12.60 129.97 13.14C 129.31 13.96 129.18 14.98 129.56 16.21C 129.94 17.44 130.89 18.73 132.42 20.11C 133.90 21.50 135.43 22.53 137.02 23.20C 138.61 23.91 140.09 24.17 141.47 23.97C 142.52 23.82 143.71 23.17 145.02 22.02L 146.11 21.06z"
                    }
                ],
                "Transformation": { // This is and advaned feature, rarely used and should have these values
                    "CenterX": 0, // Unit: pixels
                    "CenterY": 0, // Unit: pixels
                    "Rotation": 0, // Unit: degrees
                    "ScaleX": 1,
                    "ScaleY": 1
                },
                "Type": 2 // 0 = Group, 1 = Shape, 2 = Text, 3 = Bitmap
            }
        ]
    },
    "Success": true,
    "Errors": []
}