Re: WordML continuous section break

2011-07-18 Thread Marcos García
Hi Andreas, it helped a lot.
We were able to correct the issue following your indications, though it took
us a little while. We are now trying it out with more complicated documents,
but seems it's gonna work out fine.

Thanks!

2011/7/15 Andreas L. Delmelle 

> On 15 Jul 2011, at 09:26, Marcos García wrote:
>
> Hi Marcos
>
> > I have created a reduced version of the original WordML document with the
> same continous section break, and obtained the same results (it breaks it in
> two different pages).
> >
> > Here you have the FO I'm currently using.
> > It's long.
> > ready?
>
> OK, thanks. That makes it a whole lot clearer.
>
> So, you want "Paragraph 1" and "Paragraph 2" to be shown on the same page,
> right? In that case, the fact that they appear in different
> fo:page-sequences does not help --quite on the contrary: that forces an
> unconditional page-break in between the two page-sequences.
>
> The two blocks/paragraphs should end up in the same page-sequence, using
> the same 2-column page-master, and the fo:flow should look something like
> (stripped to show the most relevant parts):
>
> > 
> >font-size="10pt" line-height="1.147" white-space-collapse="true">
> ...
> >  language="ES">
> >   Paragraph1
> > 
> >   
> >line-height="1.147" white-space-collapse="true">
> >  language="ES">
> >   Paragraph2
> > 
> >   
> >   
> > 
>
> Note the span="all" spec on the first block to make sure it spans both
> columns. The second block then, will flow in two columns (implicit
> span="none").
>
> Obviously, this will mean --likely significant-- changes to your stylesheet
> code.
>
>
> Hope this helps!
>
> Regards
>
> Andreas
> ---
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


Re: WordML continuous section break

2011-07-15 Thread Andreas L. Delmelle
On 15 Jul 2011, at 09:26, Marcos García wrote:

Hi Marcos

> I have created a reduced version of the original WordML document with the 
> same continous section break, and obtained the same results (it breaks it in 
> two different pages).
> 
> Here you have the FO I'm currently using. 
> It's long. 
> ready?

OK, thanks. That makes it a whole lot clearer. 

So, you want "Paragraph 1" and "Paragraph 2" to be shown on the same page, 
right? In that case, the fact that they appear in different fo:page-sequences 
does not help --quite on the contrary: that forces an unconditional page-break 
in between the two page-sequences.

The two blocks/paragraphs should end up in the same page-sequence, using the 
same 2-column page-master, and the fo:flow should look something like (stripped 
to show the most relevant parts):

> 
>line-height="1.147" white-space-collapse="true">
...
> 
>   Paragraph1
> 
>   
>line-height="1.147" white-space-collapse="true">
> 
>   Paragraph2
> 
>   
>   
> 

Note the span="all" spec on the first block to make sure it spans both columns. 
The second block then, will flow in two columns (implicit span="none").

Obviously, this will mean --likely significant-- changes to your stylesheet 
code.


Hope this helps!

Regards

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



Re: WordML continuous section break

2011-07-15 Thread Marcos García
Thaks for your quick reply Andreas,

I have created a reduced version of the original WordML document with the
same continous section break, and obtained the same results (it breaks it in
two different pages).

Here you have the FO I'm currently using.
It's long.
ready?

==



  

  
  
  


  
  
  


  
  
  


  
  


  


  
  
  


  
  
  


  
  
  


  
  


  

  
  
...
  
  
  

  


  


  


  


  


  


  

  


  







  Paragraph1

  

  
  

  


  


  


  


  


  


  

  


  







  Paragraph2

  
  

  




What am I doing wrong?
Thanks so much.


Re: WordML continuous section break

2011-07-14 Thread Andreas L. Delmelle
On 14 Jul 2011, at 10:48, Marcos García wrote:

Hi

> I'm using FOP 1.0 to convert a wordml document into PDF.  In this document we 
> have two sections separated by a Continuous section break. The first section 
> has one column, the second two columns. 
> 
> The resulting PDF shows the two sections correctly displayed but in different 
> pages. I wanna get these both sections with their particular properties in 
> the same page as well as they are displayed in word.

That should normally be no problem, unless they really do not fit together on 
one page. I know for a fact that FOP does not currently respect 
keep-constraints across span changes, but as long as there is no reason to 
break, it should work.

> Following is the wordml code where the two sections are defined:

That is not really helpful, as FOP has nothing to do with WordML. 
If you can generate a small FO demonstrating the incorrect/unexpected 
rendering, we might just be able to say more.
You can obtain the FO via the command-line, by using the "-foout" switch.


KR

Andreas
---

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



WordML continuous section break

2011-07-14 Thread Marcos García
Hi all,

I'm using FOP 1.0 to convert a wordml document into PDF.  In this document
we have two sections separated by a *Continuous section break*. The first
section has one column, the second two columns.

The resulting PDF shows the two sections correctly displayed but in
different pages. I wanna get these both sections with their particular
properties in the same page** as well as they are displayed in word.

Following is the wordml code where the two sections are defined:





  

  

  Paragraph1

   

   





 

   





 

  

  

 

 

   

   

   

   


Paragraph2

   

 

 

   

   

   

   

   

   

   

   

   

   

   

 


My xsl code is too big to be posted here, I guess.
Anyone has any clue on this issue?

Tnaks in advance.