This commit is contained in:
2025-12-04 10:47:58 +08:00
parent 752b90b048
commit 7b45b43a0e
6 changed files with 14 additions and 56 deletions

View File

@@ -60,11 +60,6 @@ func (tp *TableParser) ParseAndRenderTable(ctx context.Context, pdf *gofpdf.Fpdf
return nil
}
tp.logger.Info("准备渲染表格",
zap.String("field_type", fieldType),
zap.Int("header_count", len(tableData.Headers)),
zap.Int("row_count", len(tableData.Rows)),
zap.Float64("pdf_current_y", pdf.GetY()))
// 渲染表格到PDF
if err := tp.databaseRenderer.RenderTable(pdf, tableData); err != nil {
@@ -72,9 +67,6 @@ func (tp *TableParser) ParseAndRenderTable(ctx context.Context, pdf *gofpdf.Fpdf
return fmt.Errorf("渲染表格失败: %w", err)
}
tp.logger.Info("表格渲染成功",
zap.String("field_type", fieldType),
zap.Float64("pdf_final_y", pdf.GetY()))
return nil
}