Great to find helpful people like you, thanks again...
/R
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Keeping-things-together-in-the-same-line-tp3013994p3015074.html
Sent from the iText - General mailing list archive at Nabble.com.
--
On Wed, 27 Oct 2010 00:23:20 -0700 (PDT), riffla
wrote:
> In other words, as long as the character preceding a period is a non
white
> space character (or a line break etc.) the period will be considered as
a
> part of the preceding block of characters, am I right?
Yes, you are right.
Also thank
Thanks again for helpful replies...
Did have a second look in the code generating the PDF, and I think I've
missed a part here.
Using property files to retrieve words/sentences to be added I sometimes add
a white space and sometimes not depending om different conditions. And in
this case I think
On 27/10/2010 8:38, 1T3XT info wrote:
> Yes,
> if I understand correctly,
Oops, I think I wasn't awake when I wrote the previous answer.
I thought you only wanted to split lines when a period was encountered.
On second thoughts, you want to split lines on the last space character
before each per
On 27/10/2010 8:26, riffla wrote:
>
> OK.
> This is a short example
> .
>
> And this is another
> example.
>
> Looking at the two sentences above, the first one is the situation I want to
> avoid. Looking at the position of the the period, this character alone has
> been pushed to a new line, in co
OK.
This is a short example
.
And this is another
example.
Looking at the two sentences above, the first one is the situation I want to
avoid. Looking at the position of the the period, this character alone has
been pushed to a new line, in contrast to the second one where the word
'example' jo
On 26/10/2010 18:00, riffla wrote:
> Now I need a strategy on how to prevent situations where only a full stop
> (period) is moved to next row - in this case I want the preceeding word also
> to be moved to next row, otherwise it would look strange
Can you give an example.
I don't understand the q
Hi
I wonder if anyone has an idea on how to solve this.
In generating a PDF from a web form and some property files the application
ends up concatenating lots of phrases and words depending on different
parameters.
I've managed to solve issues about page breaking using tables counting rows
and r
1, 2006 6:03
PMTo: Post all your questions about iText hereSubject:
Re: [iText-questions] Keeping things together
But there IS an output on the next page! Bruno had explained, that
the ct.go(true) can be used to see, if the elements fit on a page, and if not
I can create a new page
[EMAIL PROTECTED]] On
Behalf Of Michael CaletkaSent: Thursday, June 01, 2006 3:56
PM
To: Post all your questions about iText
hereSubject: Re: [iText-questions] Keeping things
together
Now a different problem has appeared. When I simulate the
add
006 3:56
PMTo: Post all your questions about iText hereSubject:
Re: [iText-questions] Keeping things together
Now a different problem has appeared. When I simulate the
additions, it seems, that the part, that doesn't fit on the first page gets
printed anyways on the second page, and th
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Michael CaletkaSent: Thursday, June 01, 2006 3:56
PMTo: Post all your questions about iText hereSubject:
Re: [iText-questions] Keeping things together
Now a different problem has appeared. When I simulate the
add
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of bruno
> Sent: Thursday, June 01, 2006 8:44 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Keeping things together
>
> Michael
Please let me know, when the book will be available. I will order a copy for sure!Many thanks againMichael2006/6/1, bruno <[EMAIL PROTECTED]
>:Michael Caletka wrote:> Sorry, AddElement DOES do the job! Somehow I must have been confused a
> little.It is very important not to mix setText and addEleme
Michael Caletka wrote:
> Sorry, AddElement DOES do the job! Somehow I must have been confused a
> little.
It is very important not to mix setText and addElement.
I explain this in my book (that will probably be released
in November), but it's difficult to explain in a few sentences
in a mail.
br
Sorry, AddElement DOES do the job! Somehow I must have been confused a little...Thanks again Michael2006/5/31, bruno <[EMAIL PROTECTED]
>:Michael Caletka wrote:> As far as I can see in the examples of the tutorial, you always have
> to give the Column a rectangle in absolute positions. I don't
Dear Bruno,Thanks for your patience, examples and explanations. Now I think at last I'm getting somewhere - thank you very much! Just one final question: How can I add PdfPtable-objects to the ColumnText? AddElement didn't do the job, nor adding the table to a Phrase or Paragraph first. What am I d
Michael Caletka wrote:
As far as I can see in the examples of the tutorial, you always have
to give the Column a rectangle in absolute positions. I don't have the
positions beforehand,
???
so I can't define a rectangle of positions for adding my paragraphs,
chunks and tables in.
When you
Okay, perhaps I don't understand the ColumnText object.As far as I can see in the examples of the tutorial, you always have to give the Column a rectangle in absolute positions. I don't have the positions beforehand, so I can't define a rectangle of positions for adding my paragraphs, chunks and ta
Michael Caletka wrote:
Hm. Maybe it's really too hard to explain properly
Yet I will give it one more try:
I don't have any columns on my document, so ColumnText is out.
That's a misconception.
As soon as you want to add text to a document,
you have a column. (A single column is also a c
Hm. Maybe it's really too hard to explain properlyYet I will give it one more try:I don't have any columns on my document, so ColumnText is out. (I tried it, but wasn't satisfied with the results)I just have some paragraphs, tables and chunks. These elements shall all be added to some main-par
Michael Caletka wrote:
??
How do I keep track of the y-coordinate when adding Chunks and
Paragraphs to a document?
Don't add Chunks and Paragraphs directly.
Use ColumnText for everything you are adding.
(Chances are that I don't understand your requirements.)
br,
Bruno
-
??How do I keep track of the y-coordinate when adding Chunks and Paragraphs to a document?All the bestMichael2006/5/29, bruno <[EMAIL PROTECTED]
>:Michael Caletka wrote:> Thanks Bruno, for the answer, but it doesn't solve the problem.
???As far as I understand your problem, it does.> I have lots of
Michael Caletka wrote:
Thanks Bruno, for the answer, but it doesn't solve the problem.
???
As far as I understand your problem, it does.
I have lots of paragraphs, and I have no idea beforehand how big they
will get, or how small, so defining x and y-positions beforehand (like
you have to d
Thanks Bruno, for the answer, but it doesn't solve the problem. I have lots of paragraphs, and I have no idea beforehand how big they will get, or how small, so defining x and y-positions beforehand (like you have to do when working with ColumnText) won't help me very much. Some paragraphs willl co
Michael Caletka wrote:
Hi,
I use the latest version of iText 1.4.1, which is a fabulous tool!
However today I encountered a rather strange effect. I have declared a
Paragrah, and want it to be kept together
Use ColumnText to avoid widows/orphans.
Then I created a PdfPTable:
After this I a
Hi,I use the latest version of iText 1.4.1, which is a
fabulous tool! However today I encountered a rather strange effect. I
have declared a Paragrah, and want it to be kept together: Paragraph p = new Paragraph();
p.setSpacingBefore(16); p.setSpacingAfter(10);
Hi,I use the latest version of iText 1.4.1, which is a fabulous tool! However today I encountered a rather strange effect. I have declared a Paragrah, and want it to be kept together: Paragraph p = new Paragraph();
p.setSpacingBefore(16); p.setSpacingAfter(10);
28 matches
Mail list logo