Re: [iText-questions] about TJ operator

2002-04-22 Thread Bruno Lowagie

Quoting KuMi [EMAIL PROTECTED]:

 Hi,
 
 I want to precisely adjust the space between two characters with TJ
 operator.
 Which class and method should I use ?

You can't do this to change the width between two characters
added with a HighLevelObject such as Phrase, Chunk,...

You can only change this space if you use PdfContentByte
to add text at absolute positions. The method you are looking
for is public void setCharacterSpacing(float charSpace)
in class PdfContentByte.

You learn more about this class in Chapter 10 of the tutorial.

kind regards,
Bruno

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] about TJ operator

2002-04-22 Thread Paulo Soares

Use PdfContentByte.showText(PdfTextArray text).

Best Regards,
Paulo Soares

 -Original Message-
 From: Bruno Lowagie [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 9:27
 To:   KuMi
 Cc:   [EMAIL PROTECTED]
 Subject:  Re: [iText-questions] about TJ operator
 
 Quoting KuMi [EMAIL PROTECTED]:
 
  Hi,
  
  I want to precisely adjust the space between two characters with TJ
  operator.
  Which class and method should I use ?
 
 You can't do this to change the width between two characters
 added with a HighLevelObject such as Phrase, Chunk,...
 
 You can only change this space if you use PdfContentByte
 to add text at absolute positions. The method you are looking
 for is public void setCharacterSpacing(float charSpace)
 in class PdfContentByte.
 
 You learn more about this class in Chapter 10 of the tutorial.
 
 kind regards,
 Bruno
 
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions

___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] about TJ operator

2002-04-22 Thread Paulo Soares

You are right but it doesn't have to be this way. I attach a new
PdfContentByte and PdfTextArray.

Best Regards,
Paulo Soares

 tj.zip 

 -Original Message-
 From: Kumata Mitsugu [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 10:41
 To:   Paulo Soares
 Subject:  Re: [iText-questions] about TJ operator
 
 Thank you for your quick response to my question.
 And I am very sorry for mistakenly sending the same mail 3 times.
 
 I am trying to use PdfContentByte.showText(PdfTextArray text) as your
 advise.
 Now, I have another question.
 PdfTextArray needs PdfString which is package private.
 How do I get PdfString object ?
 
 thank you in advance,
 KuMi
 
 
  Use PdfContentByte.showText(PdfTextArray text).
  
  Best Regards,
  Paulo Soares
  
  -Original Message-
  From:Bruno Lowagie [SMTP:[EMAIL PROTECTED]]
  Sent:Monday, April 22, 2002 9:27
  To:KuMi
  Cc:[EMAIL PROTECTED]
  Subject:Re: [iText-questions] about TJ operator
  
  Quoting KuMi [EMAIL PROTECTED]:
  
  Hi,
  
  I want to precisely adjust the space between two characters with TJ
  operator.
  Which class and method should I use ?
  
  You can't do this to change the width between two characters
  added with a HighLevelObject such as Phrase, Chunk,...
  
  You can only change this space if you use PdfContentByte
  to add text at absolute positions. The method you are looking
  for is public void setCharacterSpacing(float charSpace)
  in class PdfContentByte.
  
  You learn more about this class in Chapter 10 of the tutorial.
  
  kind regards,
  Bruno
  
  ___
  iText-questions mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/itext-questions
  



tj.zip
Description: Binary data