iTextSharp table width 100% of page

前端 未结 5 1663
小蘑菇
小蘑菇 2021-02-12 12:14

I\'m trying to add a table to a document using iTextSharp. Here is an example:

Document document = new Document(PageSize.LETTER,72, 72, 72, 72);
PdfWriter writer         


        
5条回答
  •  时光取名叫无心
    2021-02-12 12:54

    In iTextSharp latest version (5.0.4) the PdfPTable has a WidthPercentage property.

    To set a static value the property is TotalWidth.

提交回复
热议问题