Dear all
 
We are using iText for composing advertisements from data coming from a
database.
The various parts of the advertisements are implemented by means of
ColumnText objects.
All these objects may have different forms of allignments as you can see
in Voorbeeld_1.pdf.
 
My questions concerns the text starting with 'Er is gelegenheid ....'.
This text has as allignment ALIGN_JUSTIFIED.
We want to influence the place where iText starts a new line. In example
Voorbeeld_1.pdf
we want the '9' of the date to be on the same line as the rest of the
date. So we add a newline-character
after the word 'maandag'.
However the result is that the line ending with a newline-character
isn't justified (See Voorbeeld_2.pdf).
 
When we specify ALIGN_JUSTIFIED_ALL for this ColumnText object, then the
line ending with a newline-character
is justified, however, as expected, the last line is justified too (see
Voorbeeld_3.pdf).
 
My question is: how can I achieve that lines ending with a
newline-character are justified, whereas the 
last line isn't justiefied?
 
A possible solution would be to make a ColumnText object for each line
ending with a newline-character
and sets the allignment ALIGN_JUSTIFIED for these objects. However I
wonder if there is a more simple solution.
 
Regards
 
Martin Spek
PC Hooft Groep BV
Amsterdam
 
--

Dit e-mailbericht en eventuele bijlage is uitsluitend bestemd voor de 
geadresseerde(n) en strikt vertrouwelijk of anderszins wettelijk beschermd. In 
dit bericht vervatte opvattingen of meningen zijn uitsluitend die van de 
schrijver en niet per definitie die van PC Hooft Groep BV of aan haar gelieerde 
dochterondernemingen. Er kunnen aan dit bericht geen rechten worden ontleend.

Indien u niet de geadresseerde bent, verzoeken wij u dit bericht en eventuele 
bijlage daarbij aan de afzender terug te sturen en alle kopien ervan te 
vernietigen.

De PC Hooft Groep BV scant de uitgaande berichten op virussen, maar kan niet 
aansprakelijk worden gesteld in geval dit e-mailbericht en/of enige bijlage wel 
een virus bevat. De PC Hooft Groep BV kan op geen enkele wijze verantwoordelijk 
of aansprakelijk worden gehouden voor en/of in verband met de gevolgen van 
en/of schade ontstaan door het onjuist, onvolledig en/of niet-tijdig versturen 
en ontvangen van de inhoud van dit bericht.

Attachment: voorbeeld_1.pdf
Description: voorbeeld_1.pdf

Attachment: voorbeeld_2.pdf
Description: voorbeeld_2.pdf

Attachment: voorbeeld_3.pdf
Description: voorbeeld_3.pdf

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to