Re: [iText-questions] set leading

2011-02-24 Thread narama87
hello ,
i have a problem using columntext ,
infact , i want to display an arabic text , so i tried :   


Dim wri As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("C:\Test.pdf", 
FileMode.Create))
ColumnText.showTextAligned(
wri   , 
 Element.ALIGN_LEFT, 
   new Phrase("ABCDEFG!", new Font()), 
   100,
   100, 
   50,
   PdfWriter.RUN_DIRECTION_RTL,
   ColumnText.AR_LIG);

but i don't know what to put in the columntext.showtextaliged 's first argument 
(where wri is written )

any help will be great , so what do you think ? any ideas ?


--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] set leading

2005-03-04 Thread Steve Appling
If you are looking for an eaiser way to use ColumnText, MultiColumnText might meet your needs (even 
if you only use 1 column).
- Original Message - 
From: "Nederhof M.J." <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, March 02, 2005 7:15 AM
Subject: Re: [iText-questions] set leading


My 2 cents. Last week Paulo advised me to use ColumnText, because
setFirstLineIndent wouldn't work otherwise. So, instead of adding Paragraphs
to a document, I now add (addElement) them to a ColumnText. Since then I
noticed that a whole lot of other things started to work that didn't before.
One of those was a change of leading upon images included into text,
using a Chunk created as:
new Chunk(myImage, myOffsetX, myOffsetY, true)
I expect that introducing ColumnText may also solve the problem addressed in
the query below. ColumnText makes the code more complicated though. For me it
required closely reading of the old tutorial, and a lot of trial and error.
By the way, if I remember correctly, I also had to include a line:
myColumnText.setLeading(2, 1);
I cannot say I understand what 2 and 1 mean exactly, or why the choice of 2
and 1 gives good results, but it seems they do.
Regards,
 Mark-Jan
-
Paulo Soares wrote:
That's the way it works. If you need different leadings use more than
one Paragraph.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mike Watson
> Sent: Tuesday, March 01, 2005 9:45 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] set leading
>
> Hi,
>
> I am having difficulties adding phrases to a paragraph where
> each phrase has a
> different leading. That is, it seems to only obey the
> paragraph leading, and
> not the phrase leadings inside.
>
> Is this a known problem?  Any workarounds?
>
> thx
> -m
>
>
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] set leading

2005-03-02 Thread Paulo Soares
That's the way it works. If you need different leadings use more than
one Paragraph. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Mike Watson
> Sent: Tuesday, March 01, 2005 9:45 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] set leading
> 
> Hi,
> 
> I am having difficulties adding phrases to a paragraph where 
> each phrase has a 
> different leading. That is, it seems to only obey the 
> paragraph leading, and 
> not the phrase leadings inside.
> 
> Is this a known problem?  Any workarounds?
> 
> thx
> -m
> 
> 
> 
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] set leading

2005-03-02 Thread Mike Watson
Hi,

I am having difficulties adding phrases to a paragraph where each phrase has a 
different leading. That is, it seems to only obey the paragraph leading, and 
not the phrase leadings inside.

Is this a known problem?  Any workarounds?

thx
-m



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] set leading

2005-03-02 Thread Nederhof M.J.
My 2 cents. Last week Paulo advised me to use ColumnText, because
setFirstLineIndent wouldn't work otherwise. So, instead of adding Paragraphs 
to a document, I now add (addElement) them to a ColumnText. Since then I 
noticed that a whole lot of other things started to work that didn't before.
One of those was a change of leading upon images included into text,
using a Chunk created as:

new Chunk(myImage, myOffsetX, myOffsetY, true)

I expect that introducing ColumnText may also solve the problem addressed in 
the query below. ColumnText makes the code more complicated though. For me it 
required closely reading of the old tutorial, and a lot of trial and error.

By the way, if I remember correctly, I also had to include a line:

myColumnText.setLeading(2, 1); 

I cannot say I understand what 2 and 1 mean exactly, or why the choice of 2 
and 1 gives good results, but it seems they do.

Regards,
  Mark-Jan

-

Paulo Soares wrote:

> That's the way it works. If you need different leadings use more than
> one Paragraph.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Mike Watson
> > Sent: Tuesday, March 01, 2005 9:45 PM
> > To: itext-questions@lists.sourceforge.net
> > Subject: [iText-questions] set leading
> >
> > Hi,
> >
> > I am having difficulties adding phrases to a paragraph where
> > each phrase has a
> > different leading. That is, it seems to only obey the
> > paragraph leading, and
> > not the phrase leadings inside.
> >
> > Is this a known problem?  Any workarounds?
> >
> > thx
> > -m
> >
> >
> >
> > ---
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from
> > real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> ---
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Set Leading to line height

2003-11-21 Thread Jaladurgam, Ramana
Title: Message



Hello,
  
I am required to set the leading of a paragraph in such a way that the leading 
will be previous line height * 1.5;
  
How to achieve this?
 
RegardsRamana.JV. 

  
 

This email may contain confidential material. If you were not 
an intended recipient, Please notify the sender and delete all copies. 
We may monitor email to and from our network.
 ***