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;