{ "document": { "pageSize": "A4", "orientation": "Portrait", "margins": { "top": 20, "bottom": 20, "left": 20, "right": 20 } }, "pages": [ { "type": "homepage", "elements": [ { "type": "image", "dataKey": "companyLogo", "position": [0, 0], "size": [30, 15], "positioning": "absolute" }, { "type": "text", "content": "${CompanyName}", "style": "body", "position": [32, 3], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Title}", "style": "title", "position": [60, 40], "positioning": "absolute" }, { "type": "divider", "position": [0, 60], "size": [170, 1], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Id}:${metadata.reportId}", "style": "body", "position": [0, 75], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Date}:${formatDate(metadata.inspectionDate)}", "style": "body", "position": [0, 85], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Sample}:${metadata.sampleName}", "style": "body", "position": [0, 95], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Operator}:${metadata.operatorName}", "style": "body", "position": [0, 105], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Description}:${metadata.description}", "style": "body", "position": [0, 115], "positioning": "absolute" }, { "type": "divider", "position": [0, 130], "size": [170, 1], "positioning": "absolute" }, { "type": "text", "content": "${loc:Report_Summary}", "style": "heading", "position": [0, 140], "positioning": "absolute" }, { "type": "table", "dataKey": "summaryTable", "position": [0, 150], "size": [170, 60], "positioning": "absolute", "columns": [ { "header": "${loc:Field_InspectionType}", "field": "inspectionType", "width": 50, "align": "left" }, { "header": "${loc:Field_Result}", "field": "classification", "width": 30, "align": "center" }, { "header": "${loc:Field_Status}", "field": "status", "width": 30, "align": "center" } ] } ] }, { "type": "metricData", "elements": [ { "type": "text", "content": "${loc:Page_MetricData}", "style": "heading", "positioning": "flow" }, { "type": "divider", "size": [170, 1], "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_Type}:${measurementType}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Field_Point1}:${point1}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Field_Point2}:${point2}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_Distance}:${actualDistance} ${unit}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_Angle}:${angle}°", "style": "body", "positioning": "flow" }, { "type": "image", "dataKey": "lineMeasurementImage", "size": [150, 100], "border": true, "positioning": "flow" } ] }, { "type": "bgaInspection", "elements": [ { "type": "text", "content": "${loc:Page_BgaInspection}", "style": "heading", "positioning": "flow" }, { "type": "divider", "size": [170, 1], "positioning": "flow" }, { "type": "text", "content": "${loc:Bga_Count}:${bgaCount}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_VoidRate}:${formatPercent(voidRate)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_FillRate}:${formatPercent(fillRate)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Bga_TotalArea}:${formatNumber(totalBgaArea, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Bga_TotalVoidArea}:${formatNumber(totalVoidArea, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Bga_VoidLimit}:${formatPercent(voidLimit)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Table_Classification}:${classification}", "style": "bodyBold", "positioning": "flow" }, { "type": "image", "dataKey": "bgaInspectionImage", "size": [150, 100], "border": true, "positioning": "flow" }, { "type": "table", "dataKey": "bgaBallsTable", "positioning": "flow", "size": [170, 0], "columns": [ { "header": "${loc:Bga_BallIndex}", "field": "index", "width": 25, "align": "center" }, { "header": "${loc:Table_VoidRate}", "field": "voidRate", "width": 40, "align": "center" }, { "header": "${loc:Table_Area}", "field": "area", "width": 40, "align": "center" }, { "header": "${loc:Table_Classification}", "field": "classification", "width": 35, "align": "center" } ] } ] }, { "type": "voidInspection", "elements": [ { "type": "text", "content": "${loc:Page_VoidInspection}", "style": "heading", "positioning": "flow" }, { "type": "divider", "size": [170, 1], "positioning": "flow" }, { "type": "text", "content": "${loc:Void_RoiArea}:${formatNumber(roiArea, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Void_TotalArea}:${formatNumber(totalVoidArea, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_VoidRate}:${formatPercent(voidRate)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Void_Limit}:${formatPercent(voidLimit)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Void_Count}:${voidCount}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Void_MaxArea}:${formatNumber(maxVoidArea, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Table_Classification}:${classification}", "style": "bodyBold", "positioning": "flow" }, { "type": "image", "dataKey": "voidInspectionImage", "size": [150, 100], "border": true, "positioning": "flow" }, { "type": "table", "dataKey": "voidsTable", "positioning": "flow", "size": [170, 0], "columns": [ { "header": "${loc:Table_Index}", "field": "index", "width": 20, "align": "center" }, { "header": "${loc:Table_Area}", "field": "area", "width": 35, "align": "center" }, { "header": "${loc:Table_AreaPercent}", "field": "areaPercent", "width": 35, "align": "center" }, { "header": "${loc:Table_CenterX}", "field": "centerX", "width": 30, "align": "center" }, { "header": "${loc:Table_CenterY}", "field": "centerY", "width": 30, "align": "center" } ] } ] }, { "type": "viaFillInspection", "elements": [ { "type": "text", "content": "${loc:Page_ViaFillInspection}", "style": "heading", "positioning": "flow" }, { "type": "divider", "size": [170, 1], "positioning": "flow" }, { "type": "text", "content": "${loc:Fill_Rate}:${formatPercent(fillRate)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Measurement_VoidRate}:${formatPercent(voidRate)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Fill_FullDistance}:${formatNumber(fullDistance, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Fill_FillDistance}:${formatNumber(fillDistance, 2)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Fill_THTLimit}:${formatPercent(thtLimit)}", "style": "body", "positioning": "flow" }, { "type": "text", "content": "${loc:Table_Classification}:${classification}", "style": "bodyBold", "positioning": "flow" }, { "type": "image", "dataKey": "viaFillImage", "size": [150, 100], "border": true, "positioning": "flow" } ] } ], "styles": { "title": { "font": "auto", "size": 24, "bold": true, "italic": false, "color": "#1a1a1a", "align": "center" }, "heading": { "font": "auto", "size": 16, "bold": true, "italic": false, "color": "#333333", "align": "left" }, "body": { "font": "auto", "size": 11, "bold": false, "italic": false, "color": "#333333", "align": "left" }, "bodyBold": { "font": "auto", "size": 11, "bold": true, "italic": false, "color": "#1a1a1a", "align": "left" }, "tableHeader": { "font": "auto", "size": 10, "bold": true, "italic": false, "color": "#ffffff", "align": "center", "backgroundColor": "#4472C4" }, "tableCell": { "font": "auto", "size": 10, "bold": false, "italic": false, "color": "#333333", "align": "center" } } }