Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7412137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:29:42+00:00 2026-05-29T06:29:42+00:00

How can I reduce the height of a line break which occurs when a

  • 0

How can I reduce the height of a line break which occurs when a paragraph length is too long for the width of the ColumnText?

I’ve tried the following, as I’ve seen other questions which answered with this:

p.Leading = 0

But this has made no affect.

I’ve also tried increasing the Leading to 100 to see if a larger line break is added, but neither work.

SpacingBefore/SpacingAfter doesn’t help either:

p.SpacingBefore = 0
p.SpacingAfter = 0

How can I reduce this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:29:44+00:00Added an answer on May 29, 2026 at 6:29 am

    When using a table, you need to set the leading on the cell itself. However, you’ll see that the Leading property is read-only so instead you’ll need to use the SetLeading() method which takes two values, the first is the fixed leading and the second is the multiplied leading. According to this post here:

    Multiplied basically means, the larger the font, the larger the leading. Fixed means the same leading for any font size.

    To shrink the leading to 80% you’d use:

    Dim P1 As New Paragraph("It was the best of times, it was the worst of times")
    Dim C1 As New PdfPCell(P1)
    C1.SetLeading(0, 0.8)
    

    EDIT

    Sorry, I saw “Column” and my coffee-lacking brain went to tables.

    For a ColumnText you should be able to use the Paragraph’s leading values just fine.

    Dim cb = writer.DirectContent
    Dim ct As New ColumnText(cb)
    
    ct.SetSimpleColumn(0, 0, 200, 200)
    Dim P1 As New Paragraph("It was the best of times, it was the worst of times")
    ''//Disable fixed leading
    P1.Leading = 0
    ''//Set a font-relative leading
    P1.MultipliedLeading = 0.8
    ct.AddElement(P1)
    ct.Go()
    

    On my machine running iTextSharp 5.1.2.0 this produces two lines of text that are slightly squished together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I reduce the size (height and width) of a DatePicker? Is there
Can I reduce the textbox width without using classes? <input type=text maxlength=5 style=3px/>
I am trying to parallel a classic map-reduce problem (which can parallel well with
how can i Reduce Tab height and align text on top? import android.app.TabActivity; import
How can i reduce the height of the tabs as given in this jsfiddle
can anybody tell how to reduce the height of tab bar and display tab
I wrote code in which I call jQuery.noConflict(); many times. How can reduce jQuery.noConflict();
1 Why I can't shrink the width image when I reduce the browser window
You can reduce the number of HTTP requests to speed up your site, such
Simple question :) How can I reduce build time using a parallel build /

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.