From 011774cfc1f3d144db557fc4a5f76e1873233682 Mon Sep 17 00:00:00 2001 From: csh Date: Wed, 26 Jun 2024 14:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E8=B7=A8=E9=A1=B5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- range/TSPdfTableRange.tsf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/range/TSPdfTableRange.tsf b/range/TSPdfTableRange.tsf index 6ac9dfc..d18fc23 100644 --- a/range/TSPdfTableRange.tsf +++ b/range/TSPdfTableRange.tsf @@ -104,8 +104,6 @@ begin range := nil; if element.LocalName = "p" then begin - if element.w14paraId="5CEC646C" then - println("???????????"); range := new TSPdfParagraphRange(docx_to_pdf_, page_, docx_components_, sect_ware_, element); range.SetExtraStyleId(tbl_pr.TblStyle.Val); end @@ -131,14 +129,13 @@ begin // 判定是否跨页 total_height := max_height + tbl_pr.TblCellMar.Top.W + tbl_pr.TblCellMar.Bottom.W; surplus := total_height - (point_.Y - sect_ware_.SectPr.PgMar.Bottom); - if not tc_h and not self.H and surplus > 0 then + if not self.H and surplus > 0 then begin for _,range in rows_range_array do range.H := point_.Y - sect_ware_.SectPr.PgMar.Bottom; span := sect_ware_.SectPr.PgSz.H - sect_ware_.SectPr.PgMar.Top - sect_ware_.SectPr.PgMar.Bottom; quotient := surplus div span; remainder := surplus % span; - println("page_ = {}, quotient = {}, remainder = {}", page_, quotient, remainder); page := page_; tc_y := point_.Y; i := 0;