diff --git a/app/src/main/java/com/example/myapplication/database/entities/composeui/ReportPage.kt b/app/src/main/java/com/example/myapplication/database/entities/composeui/ReportPage.kt index dc2bbc4..6ec1958 100644 --- a/app/src/main/java/com/example/myapplication/database/entities/composeui/ReportPage.kt +++ b/app/src/main/java/com/example/myapplication/database/entities/composeui/ReportPage.kt @@ -228,8 +228,8 @@ private fun createPdfContent(outputStream: OutputStream, reportData: List, + columnWidths: FloatArray, + y: Float, + paint: Paint +) { + var x = 40f + for (i in row.indices) { + val text = row[i] + canvas.drawText(text, x, y, paint) + x += columnWidths[i] * 80 // Увеличиваем ширину столбцов + } } +