简体   繁体   中英

MigraDoc - Width Percentage

I am converting a current ITextSharp PDF Export to MigraDoc. it is a very table heavy PDF and a lot of use is made of Table.WidthPercentage which sets the width of Table . I am trying to replicate this in MigraDoc but so far have come up with nothing. I can probably do something manually but want to see if there was a better way of doing this?

EDIT

Now knowing that the MigraDoc Column widths are Absolute I am looking to apply the Width manually. In this particular instance I have a table that exists within a cell (as an element) of another table. I am therefore looking to capture the Column.Width of the parent table but it just keeps coming back empty? Is this not automatically set / calculated or am I looking in the wrong place?

Tables in MigraDoc have absolute dimensions. You know the width of your pages and can calculate absolute widths from percentages when needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM