Note that there are some explanatory texts on larger screens.

plurals
  1. POiText PDF MultiColumnText Line Height
    primarykey
    data
    text
    <p>I'm having trouble setting the line height for a Paragraph object when its added to a Column inside a MultiColumnText object.</p> <p>Notice the arbitrary spacing between each new line. Screen shot here of rendered content on 2nd column. <a href="https://dl.dropbox.com/u/249320/Foliotek/Capture.PNG" rel="nofollow">https://dl.dropbox.com/u/249320/Foliotek/Capture.PNG</a></p> <p>I have it rendering and going to the next column correctly. But I cant seem to set the height of each new row. Thoughts?</p> <p>My Code:</p> <pre><code>MultiColumnText mct = new MultiColumnText(); mct.Alignment = Element.ALIGN_JUSTIFIED_ALL; //8 // setup column 1 float[] left = {1020, 280, 1020, 7 }; float[] right = {1022, 576, 1022, 280, 1096, 280, 1214, 154, 1214, 7 }; mct.AddColumn(left, right); // setup column 2 left = new float[] { 1422, 576, 1422, 266, 1259, 106, 1246, 105, 1246, 7 }; right = new float[] {1433, 280, 1433, 7 }; mct.AddColumn(left, right); techDataColumnText += " GALLIA est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis Garumna flumen, a Belgis Matrona et Sequana dividit. Horum omnium fortissimi sunt Belgae, propterea quod a cultu atque humanitate provinciae longissime absunt, minimeque ad eos mercatores saepe commeant atque ea quae ad effeminandos animos pertinent important, proximique sunt Germanis, qui trans Rhenum incolunt, quibuscum continenter bellum gerunt. Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt."; Paragraph techDataPhrase = new Paragraph(techDataColumnText, new Font(FuturaBoldBaseFont, 8f)); mct.AddElement(techDataPhrase); do { document.Add(mct); mct.NextColumn(); } while (mct.IsOverflow()); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload