hi,

I am trying to have the text in an ordered list be justified.
The following is my standalone code, but as you can see result is not justified.

' Create a MemoryStream object...
   Dim m As New System.IO.MemoryStream

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Dim document As Document = New Document(PageSize.LETTER)

       Response.Clear()
       Response.ContentType = "application/pdf"
       Dim writer As PdfWriter = PdfWriter.GetInstance(document, m)

       document.Open()
       Dim MyList As New List(False, True, 50)
       Dim section_A As Paragraph

section_A = New Paragraph("The Employer is a desirous that certain works namely the provision of RehabilitativeMaintenance of roads for the Land and Water Development Division, Ministry ofAgriculture, Land and Marine Resources at which shall be performed in the manner described in the Tender Documents.")
       Dim item As New ListItem(section_A)
       item.SetAlignment(Element.ALIGN_JUSTIFIED)
       MyList.Add(item)
       document.Add(MyList)

       document.Close()

       writer.Flush()

       Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length)

       Response.OutputStream.Flush()

       Response.OutputStream.Close()

       Response.End()
   End Sub

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to