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 Senthil Kumar Balasubramanian <se...@hexaware.com> on 2007/05/16 11:10:48 UTC

Table and the Data are missing in PDF

Hi,

 

I am in the processing of converting HTML page to PDF using Tidy + FOP
frameworks. 

 

There is a problem when converting a HTML table into a PDF. The table
and the data are not displaying in the PDF.

 

Can anyone aware of it. Please let me know.

 

I have attached my Java Code, XSL StyleSheet and the HTML for your
reference.

 

Thanks and Regards,

Senthil

 

 

Best Regards,

Senthilkumar .B

Xtn: 6616

 



*********************************************************************************************************************************************
This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the 
use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, 
distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith 
all attachments thereto and notify us immediately at mailadmin@hexaware.com <ma...@hexaware.com>.
*********************************************************************************************************************************************


Re: Table and the Data are missing in PDF

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Senthil, can't you please just post the generated FO file. It would make
it easier to help. I don't want to spend a lot of time finding the right
libraries and making your code work. Thanks.

On 16.05.2007 11:10:48 Senthil Kumar Balasubramanian wrote:
> Hi,
> 
>  
> 
> I am in the processing of converting HTML page to PDF using Tidy + FOP
> frameworks. 
> 
>  
> 
> There is a problem when converting a HTML table into a PDF. The table
> and the data are not displaying in the PDF.
> 
>  
> 
> Can anyone aware of it. Please let me know.
> 
>  
> 
> I have attached my Java Code, XSL StyleSheet and the HTML for your
> reference.
> 
>  
> 
> Thanks and Regards,
> 
> Senthil
> 
>  
> 
>  
> 
> Best Regards,
> 
> Senthilkumar .B
> 
> Xtn: 6616



Jeremias Maerki


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


Re: Table and the Data are missing in PDF

Posted by pangqiu <zm...@yahoo.com>.
I have found problem. 

In FOP 0.93, fo:table-and-caption is not supported. just remove this part.
the table will  display in PDF.

Thanks


pangqiu wrote:
> 
> I have same problem could not show table in pdf, but it could be show in
> RTF. very strange. 
> 
> Here is my FO file part
> 
> <fo:table-and-caption display-align="center"><fo:table
> border-collapse="separate" border-spacing="0px" border="1px"
> table-layout="fixed" width="100%" border-style="outset"
> role="html:table"><fo:table-body start-indent="0pt" end-indent="0pt"
> text-indent="0pt" last-line-end-indent="0pt" text-align="start"
> text-align-last="relative"><fo:table-row role="html:tr">
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block>afdasfasfdsadf</fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 	</fo:table-row><fo:table-row role="html:tr">
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td" display-align="before"><fo:block>afa<fo:inline
> font-weight="bolder" role="html:strong"><fo:inline font-weight="bolder"
> font-style="italic"
> role="html:em">sfsaf</fo:inline></fo:inline></fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 		<fo:table-cell border="1px" padding="0px" border-style="inset"
> role="html:td"
> display-align="before"><fo:block> </fo:block></fo:table-cell>
> 	</fo:table-row></fo:table-body></fo:table></fo:table-and-caption>
> 

-- 
View this message in context: http://www.nabble.com/Table-and-the-Data-are-missing-in-PDF-tf3763433.html#a10680314
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: Table and the Data are missing in PDF

Posted by pangqiu <zm...@yahoo.com>.
I have same problem could not show table in pdf, but it could be show in RTF.
very strange. 

Here is my FO file part

<fo:table-and-caption display-align="center"><fo:table
border-collapse="separate" border-spacing="0px" border="1px"
table-layout="fixed" width="100%" border-style="outset"
role="html:table"><fo:table-body start-indent="0pt" end-indent="0pt"
text-indent="0pt" last-line-end-indent="0pt" text-align="start"
text-align-last="relative"><fo:table-row role="html:tr">
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td"
display-align="before"><fo:block>afdasfasfdsadf</fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
	</fo:table-row><fo:table-row role="html:tr">
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block>afa<fo:inline
font-weight="bolder" role="html:strong"><fo:inline font-weight="bolder"
font-style="italic"
role="html:em">sfsaf</fo:inline></fo:inline></fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
		<fo:table-cell border="1px" padding="0px" border-style="inset"
role="html:td" display-align="before"><fo:block> </fo:block></fo:table-cell>
	</fo:table-row></fo:table-body></fo:table></fo:table-and-caption>
-- 
View this message in context: http://www.nabble.com/Table-and-the-Data-are-missing-in-PDF-tf3763433.html#a10676579
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