You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by JPee <pe...@softwareforen.de> on 2010/09/13 16:41:46 UTC

2 Column Layout and Text-Align

Hello all,

in my project i have my bodypart of the page divided into 2 columns by the
following code part:

 <fo:region-body background-color="#FFFFFF" margin-bottom="30mm"
margin-top="37mm" column-count="2" column-gap="12mm"/>

In the body the items are ordered like this.
<fo:block>
<fo:block>1</fo:block><fo:block>2</fo:block>
<fo:block>3</fo:block><fo:block>4</fo:block>
<fo:block>5</fo:block><fo:block>6</fo:block>
</fo:block>

But what i need is this:
<fo:block>1</fo:block><fo:block>4</fo:block>
<fo:block>2</fo:block><fo:block>5</fo:block>
<fo:block>3</fo:block><fo:block>6</fo:block>

Is there an attribute for this?

Thanks and greets from leipzig

Johannes Perlet
-- 
View this message in context: http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699033.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


AW: AW: 2 Column Layout and Text-Align

Posted by Georg Datterl <ge...@geneon.de>.
Hi Johannes,

Is "body" your fo file or your pdf file? If it is your fo file, you have to change your transformation. The blocks have to come in the same order as you want them printed.
If you talk about your PDF, then I assume you are complaining about the automatic column balancing. You can turn this off with a fox attribute in flow:

<flow fox:disable-column-balancing="true">

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de


-----Ursprüngliche Nachricht-----
Von: JPee [mailto:perlet@softwareforen.de]
Gesendet: Montag, 13. September 2010 16:56
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: 2 Column Layout and Text-Align


Hi Georg,

thx for your response. I made a fault in my description.

In the body the items are ordered like this.
<fo:block>
<fo:block>1</fo:block><fo:block>3</fo:block>
<fo:block>2</fo:block><fo:block>4</fo:block>
<fo:block>empty</fo:block><fo:block>empty</fo:block>
</fo:block>

But what i need is this:
<fo:block>1</fo:block><fo:block>4</fo:block>
<fo:block>2</fo:block><fo:block>empty</fo:block>
<fo:block>3</fo:block><fo:block>empty</fo:block>

So if there are'nt enough items to fill both columns, that first the left
column will be filled.

Greetings

Johannes Perlet





Georg Datterl wrote:
>
> Hi Johannes,
>
> column-count="2" should do that. Probably a problem somewhere else in your
> page?
>
> Mit freundlichen Grüßen
>
> Georg Datterl
>
> ------ Kontakt ------
>
> Georg Datterl
>
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
>
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
>
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
>
> www.geneon.de
>
> Weitere Mitglieder der Willmy MediaGroup:
>
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de
>
>
> -----Ursprüngliche Nachricht-----
> Von: JPee [mailto:perlet@softwareforen.de]
> Gesendet: Montag, 13. September 2010 16:42
> An: fop-users@xmlgraphics.apache.org
> Betreff: 2 Column Layout and Text-Align
>
>
> Hello all,
>
> in my project i have my bodypart of the page divided into 2 columns by the
> following code part:
>
>  <fo:region-body background-color="#FFFFFF" margin-bottom="30mm"
> margin-top="37mm" column-count="2" column-gap="12mm"/>
>
> In the body the items are ordered like this.
> <fo:block>
> <fo:block>1</fo:block><fo:block>2</fo:block>
> <fo:block>3</fo:block><fo:block>4</fo:block>
> <fo:block>5</fo:block><fo:block>6</fo:block>
> </fo:block>
>
> But what i need is this:
> <fo:block>1</fo:block><fo:block>4</fo:block>
> <fo:block>2</fo:block><fo:block>5</fo:block>
> <fo:block>3</fo:block><fo:block>6</fo:block>
>
> Is there an attribute for this?
>
> Thanks and greets from leipzig
>
> Johannes Perlet
> --
> View this message in context:
> http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699033.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>

--
View this message in context: http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699180.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: AW: 2 Column Layout and Text-Align

Posted by JPee <pe...@softwareforen.de>.
Hi Georg,

thx for your response. I made a fault in my description.

In the body the items are ordered like this.
<fo:block>
<fo:block>1</fo:block><fo:block>3</fo:block>
<fo:block>2</fo:block><fo:block>4</fo:block>
<fo:block>empty</fo:block><fo:block>empty</fo:block>
</fo:block>

But what i need is this:
<fo:block>1</fo:block><fo:block>4</fo:block>
<fo:block>2</fo:block><fo:block>empty</fo:block>
<fo:block>3</fo:block><fo:block>empty</fo:block>

So if there are'nt enough items to fill both columns, that first the left
column will be filled.

Greetings 

Johannes Perlet





Georg Datterl wrote:
> 
> Hi Johannes,
> 
> column-count="2" should do that. Probably a problem somewhere else in your
> page?
> 
> Mit freundlichen Grüßen
> 
> Georg Datterl
> 
> ------ Kontakt ------
> 
> Georg Datterl
> 
> Geneon media solutions gmbh
> Gutenstetter Straße 8a
> 90449 Nürnberg
> 
> HRB Nürnberg: 17193
> Geschäftsführer: Yong-Harry Steiert
> 
> Tel.: 0911/36 78 88 - 26
> Fax: 0911/36 78 88 - 20
> 
> www.geneon.de
> 
> Weitere Mitglieder der Willmy MediaGroup:
> 
> IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> Willmy PrintMedia GmbH:                            www.willmy.de
> Willmy Consult & Content GmbH:                 www.willmycc.de
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: JPee [mailto:perlet@softwareforen.de]
> Gesendet: Montag, 13. September 2010 16:42
> An: fop-users@xmlgraphics.apache.org
> Betreff: 2 Column Layout and Text-Align
> 
> 
> Hello all,
> 
> in my project i have my bodypart of the page divided into 2 columns by the
> following code part:
> 
>  <fo:region-body background-color="#FFFFFF" margin-bottom="30mm"
> margin-top="37mm" column-count="2" column-gap="12mm"/>
> 
> In the body the items are ordered like this.
> <fo:block>
> <fo:block>1</fo:block><fo:block>2</fo:block>
> <fo:block>3</fo:block><fo:block>4</fo:block>
> <fo:block>5</fo:block><fo:block>6</fo:block>
> </fo:block>
> 
> But what i need is this:
> <fo:block>1</fo:block><fo:block>4</fo:block>
> <fo:block>2</fo:block><fo:block>5</fo:block>
> <fo:block>3</fo:block><fo:block>6</fo:block>
> 
> Is there an attribute for this?
> 
> Thanks and greets from leipzig
> 
> Johannes Perlet
> --
> View this message in context:
> http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699033.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699180.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


AW: 2 Column Layout and Text-Align

Posted by Georg Datterl <ge...@geneon.de>.
Hi Johannes,

column-count="2" should do that. Probably a problem somewhere else in your page?

Mit freundlichen Grüßen

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de


-----Ursprüngliche Nachricht-----
Von: JPee [mailto:perlet@softwareforen.de]
Gesendet: Montag, 13. September 2010 16:42
An: fop-users@xmlgraphics.apache.org
Betreff: 2 Column Layout and Text-Align


Hello all,

in my project i have my bodypart of the page divided into 2 columns by the
following code part:

 <fo:region-body background-color="#FFFFFF" margin-bottom="30mm"
margin-top="37mm" column-count="2" column-gap="12mm"/>

In the body the items are ordered like this.
<fo:block>
<fo:block>1</fo:block><fo:block>2</fo:block>
<fo:block>3</fo:block><fo:block>4</fo:block>
<fo:block>5</fo:block><fo:block>6</fo:block>
</fo:block>

But what i need is this:
<fo:block>1</fo:block><fo:block>4</fo:block>
<fo:block>2</fo:block><fo:block>5</fo:block>
<fo:block>3</fo:block><fo:block>6</fo:block>

Is there an attribute for this?

Thanks and greets from leipzig

Johannes Perlet
--
View this message in context: http://old.nabble.com/2-Column-Layout-and-Text-Align-tp29699033p29699033.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org