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 Eduardo Muñoz <ed...@yahoo.com> on 2004/05/12 20:17:39 UTC

Sometimes FOP truncates text

I have a web application that generates PDF report
documents using FOP. A very strange thing happens from
time to time. Sometimes I generate the report and the
first word of some texts truncate. This happens for
text inside tables.

It is realy weird because it only happens sometimes,
without making any change to the code. I hope you can
help me figure out what the problem is.

Ed

=====


_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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


Re: Sometimes FOP truncates text

Posted by Chris Bowditch <bo...@hotmail.com>.
Eduardo Muñoz wrote:

> I have a web application that generates PDF report
> documents using FOP. A very strange thing happens from
> time to time. Sometimes I generate the report and the
> first word of some texts truncate. This happens for
> text inside tables.
> 
> It is realy weird because it only happens sometimes,
> without making any change to the code. I hope you can
> help me figure out what the problem is.

In addition to Andreas request for sample FO, it would be very useful to know 
what version of FOP you are running? The OS and JDK you are using would also 
be helpful.

Chris



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


RE: Sometimes FOP truncates text

Posted by Eduardo Muñoz <ed...@yahoo.com>.
The problem is that it fails every now and then... I
guess I'll have to keep looking for other variables
that could be messing things up. I appreciate your
help.


Ed
 --- "Andreas L. Delmelle" <a_...@pandora.be>
escribió: > > -----Original Message-----
> > From: Eduardo Muñoz
> [mailto:eduardomc_79@yahoo.com]
> >
> > I'm using FOP 0.20.5 with JDK 1.4.1 and WinNT
> server
> > this also happens in Solaris OS.
> >
> 
> Hi,
> 
> I tried rendering the table code you supplied ( FOP
> 0.20.5 / Win2K server /
> Java 1.5 ) and I can't reproduce the problem...
> shows up nicely from the
> first time.
> 
> 
> Greetz,
> 
> Andreas
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>  

=====


_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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


RE: Sometimes FOP truncates text

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Eduardo Muñoz [mailto:eduardomc_79@yahoo.com]
>
> I'm using FOP 0.20.5 with JDK 1.4.1 and WinNT server
> this also happens in Solaris OS.
>

Hi,

I tried rendering the table code you supplied ( FOP 0.20.5 / Win2K server /
Java 1.5 ) and I can't reproduce the problem... shows up nicely from the
first time.


Greetz,

Andreas


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


Re: Sometimes FOP truncates text

Posted by Eduardo Muñoz <ed...@yahoo.com>.
I'm using FOP 0.20.5 with JDK 1.4.1 and WinNT server
this also happens in Solaris OS.

thanks

Ed

 --- Chris Bowditch <bo...@hotmail.com>
escribió: > Eduardo Muñoz wrote:
> 
> > I've found that the problem only happens the first
> > time I convert it to PDF and only to a couple of
> rows.
> > If I run the process again, without changing
> anything,
> > the information is displayed OK. This doesn't
> happen
> > for specific words. I've changed the text a lot of
> > times and it still happens.
> > 
> > Here is the code for the specific table.
> > 
> > I hope you can help me. 
> 
> Well thanks for the sample FO, but still cant help
> you until you tell us which 
> version of FOP you are running? OS and JDKs versions
> would also be helpful.
> 
> Chris
> 
> <snip/>
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>  

=====


_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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


Re: Sometimes FOP truncates text

Posted by Chris Bowditch <bo...@hotmail.com>.
Eduardo Muñoz wrote:

> I've found that the problem only happens the first
> time I convert it to PDF and only to a couple of rows.
> If I run the process again, without changing anything,
> the information is displayed OK. This doesn't happen
> for specific words. I've changed the text a lot of
> times and it still happens.
> 
> Here is the code for the specific table.
> 
> I hope you can help me. 

Well thanks for the sample FO, but still cant help you until you tell us which 
version of FOP you are running? OS and JDKs versions would also be helpful.

Chris

<snip/>



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


RE: Sometimes FOP truncates text

Posted by Eduardo Muñoz <ed...@yahoo.com>.
I've found that the problem only happens the first
time I convert it to PDF and only to a couple of rows.
If I run the process again, without changing anything,
the information is displayed OK. This doesn't happen
for specific words. I've changed the text a lot of
times and it still happens.

Here is the code for the specific table.

I hope you can help me. 


<fo:table width="185.8mm" table-layout="fixed">
				<fo:table-column column-width="5mm"/>
				<fo:table-column column-width="180.8mm"/>
				<fo:table-body>
					<fo:table-row background-color="#FFFFFF">
						<fo:table-cell background-color="#FFFFFF"/>
						<fo:table-cell>
							<fo:table
xmlns:fo="http://www.w3.org/1999/XSL/Format"
border="solid black .1mm" font-size="9pt"
color="black" space-after="7mm" width="182mm">
								<fo:table-column column-width="15mm"/>
								<fo:table-column column-width="75.8mm"/>
								<fo:table-column column-width="45mm"/>
								<fo:table-column column-width="45mm"/>
								<fo:table-header background-color="#B0C9D7">
									<fo:table-row>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
number-rows-spanned="1">
											<fo:block font-weight="bold"
text-align="center">No.</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
number-rows-spanned="1">
											<fo:block font-weight="bold"
text-align="left">This text truncates the first time I
transform it to PDF</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
number-rows-spanned="1">
											<fo:block font-weight="bold"
text-align="center">Objective Indicators</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
number-rows-spanned="1">
											<fo:block font-weight="bold"
text-align="center">Projects and Processes
Indicators</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-header>
								<fo:table-body>
									<fo:table-row background-color="#D9D9D9">
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
padding-top=".5mm" padding-bottom=".5mm"
padding-right=".5mm">
											<fo:block>2</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="left"
border="solid black .1mm" padding-left="1mm"
padding-top=".5mm" padding-bottom=".5mm"
padding-right=".5mm">
											<fo:block>This also truncates the first
time</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
padding-top=".5mm" padding-bottom=".5mm"
padding-right=".5mm">
											<fo:block>5</fo:block>
										</fo:table-cell>
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
padding-top=".5mm" padding-bottom=".5mm"
padding-right=".5mm">
											<fo:block>0</fo:block>
										</fo:table-cell>
									</fo:table-row>
									<fo:table-row background-color="#E9EEDF">
										<fo:table-cell text-align="center"
border="solid black .1mm" padding-left="1mm"
padding-top=".5mm" padding-bottom=".5mm"
padding-right=".5mm" number-columns-spanned="4">
											<fo:block text-align="left"> 5 Total
records.</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>

 --- "Andreas L. Delmelle" <a_...@pandora.be>
escribió: > > -----Original Message-----
> > From: Eduardo Muñoz
> [mailto:eduardomc_79@yahoo.com]
> >
> 
> Hi,
> 
> > I have a web application that generates PDF report
> > documents using FOP. A very strange thing happens
> from
> > time to time. Sometimes I generate the report and
> the
> > first word of some texts truncate. This happens
> for
> > text inside tables.
> >
> > It is realy weird because it only happens
> sometimes,
> > without making any change to the code. I hope you
> can
> > help me figure out what the problem is.
> >
> 
> Well, we'd certainly like to help, but this is very
> difficult if you're not
> going to supply us with any of the code... ;)
> So we hope you can help us by posting a sample
> demonstrating the problem. If
> this is impossible somehow, study the cases where it
> happens *very* closely.
> Anything peculiar (maybe about the word that should
> have ended up there)?
> Where exactly does it happen? When the page breaks?
> (first word in a page)
> ...
> 
> If you have any more info to provide, please do.
> 
> Cheers,
> 
> Andreas
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>  

=====


_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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


RE: Sometimes FOP truncates text

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Eduardo Muñoz [mailto:eduardomc_79@yahoo.com]
>

Hi,

> I have a web application that generates PDF report
> documents using FOP. A very strange thing happens from
> time to time. Sometimes I generate the report and the
> first word of some texts truncate. This happens for
> text inside tables.
>
> It is realy weird because it only happens sometimes,
> without making any change to the code. I hope you can
> help me figure out what the problem is.
>

Well, we'd certainly like to help, but this is very difficult if you're not
going to supply us with any of the code... ;)
So we hope you can help us by posting a sample demonstrating the problem. If
this is impossible somehow, study the cases where it happens *very* closely.
Anything peculiar (maybe about the word that should have ended up there)?
Where exactly does it happen? When the page breaks? (first word in a page)
...

If you have any more info to provide, please do.

Cheers,

Andreas


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