xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen Yang" <cy...@hrsg.ca>
Subject RE: FW: Can't get RTF page break working
Date Thu, 21 Oct 2010 13:28:05 GMT
Hey Mehdi,
Thanks for the response. I saw this bug page before, I thought it's already been approved
and Patched in current version trunk. Since this bug was report in 2007 and got fixed in 2008.


But anyhow, I will give the patch file a try,

Thanks again

Chen 
-----Original Message-----
From: mehdi houshmand [mailto:med1985@gmail.com] 
Sent: October-21-10 4:32 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FW: Can't get RTF page break working

Hi Chen,

It seems like there's a known bug with the RTF format, it doesn't seem to print the page breaks,
you can see this in Bugzilla  bug #42600 (https://issues.apache.org/bugzilla/show_bug.cgi?id=42600).
There is a patch associated with this bug but from the looks of it, it requires approval.

Sorry I couldn't be any more help

Mehdi

On 21 October 2010 08:26, mehdi houshmand <med1985@gmail.com> wrote:
> Hi Chen,
>
> I'm finding the same issue when I use your FO, just to warn you 
> however, your second table cell looks as follows:
>
> <fo:block break-after="page" break-before="page" line-height="14pt"
> font-size="11pt" font-family="Times" font-weight="normal">7031968 1 
> Version </fo:block>
>
> This could have been a mistake, but what was your intention for this 
> table-cell? I have changed the output to PDF and the page-breaks are 
> working there, is that output you wish presented? In order to ouput to 
> pdf you use a similar command:
>
> "# Fop -xml scource.xml -xsl dic_new.xsl -pdf FILENAME.pdf"
>
> Mehdi
>
> On 20 October 2010 20:13, Chen Yang <cyang@hrsg.ca> wrote:
>> Hello list,
>>
>> I have tried to get the rtf page break working with fop trunk, but 
>> seem going nowhere so far.
>>
>>
>>
>> I played around with Fop 0.95 and recently upgrade to Fop 1.0 for the 
>> project I am working on. But soon I discovered RTF page break is only 
>> available in fop trunk with RTFlib(jfor)
>>
>> So I spend some time use ANT 1.8.1 to build fop trunk with CentOS 5.5
>>
>>
>>
>> Here is my code
>>
>>
>>
>> <fo:table xsl:use-attribute-sets="table_p" break-after="page">
>>
>> .
>>
>> .
>>
>> .
>>
>> </fo:table>
>>
>>
>>
>> Or
>>
>>
>>
>> <fo:block xsl:use-attribute-sets="competency-group-name"
>> break-before="page">
>>
>>     <xsl:apply-templates/>
>>
>> </fo:block>
>>
>>
>>
>> And here is the command I used
>>
>>
>>
>> "# Fop -xml scource.xml -xsl dic_new.xsl -rtf test_1.1.rtf"
>>
>>
>>
>> Result was I can get the rtf file but all the tables are still stuck 
>> in one page.
>>
>>
>>
>> I tried to run Page_Break.fo (see attachment) which I found from the 
>> mail-list, also can't get it work.
>>
>>
>>
>> Since I am a newbie with FOP and Java, I have no idea what is wrong 
>> and how I can get this working,
>>
>>
>>
>> If anyone can give me some guide on this, I'll be much appreciated,
>>
>>
>>
>> Thanks in advance
>>
>>
>>
>> Chen Yang
>>
>> Programmer / Analyst
>>
>> HRSG (Human Resource Systems Group)
>>
>> Email:     cyang@hrsg.ca
>>
>> Web:       www.hrsg.ca
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


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


Mime
View raw message