Skip to main content
Hi there,

I need to develop a a big pdf which contains lots of data.

I am dividing those into different components and displaying all the components in one vf  page which generates pdf file

Below is the code for vf page

<p align="Left"><b>Total daily Orders</b></p>

        

    <c:Component_Morning_Report_Daily_Orders />

    <br/><br/>

    

    <table  width="47%" cellspacing="0" border="1" style="display: inline-block;float: left; ">

        <tr><TD colspan="5"  ><center><b>MTD By Product</b> </center></TD></tr>

        <tr><td style="display:none"><c:Component_Morning_Report_MTD_YTD_Product /></td></tr></table>

    

    

    <table  width="47%" cellspacing="0" border="1" style="display: inline-block;float: Right; ">

    <tr ><TD colspan="5" ><center><b>YTD By Product</b></center></TD>   </tr>

    <tr><td style="display:none"><c:Component_Morning_Report_MTD_YTD_Product /></td></tr></table>

    

    

    <b>MTD By Region</b>

    <c:Component_Morning_Report_MTD_YTD_Region />

and out put is  ( you can see tables are over lapping)

Html table are over lapping when content is more in visual force page pdf

 
4 answers
  1. Nov 18, 2015, 8:21 PM
    You can always add a margin-right: 20px to your table to increase the amount of space between them.