+ Start a Discussion
nagalakshminagalakshmi 

Visualforce PDF issue

Hi,

 

I am generating pdf from visualforce page. I need to display one table at bottom of the page(only one page. that page is 2 page from last). How can i solve this. Please help me..

 

Thanks,

Lakshmi.

Rahul_sgRahul_sg
I didnt get your question, but see if this helps:
<div style="page-break-after:always;">
nagalakshminagalakshmi


Hi Rahul,

 

Actually i am generating the pdf from visualforce. I have data in table format. That table will come 2 page from last page when i am generating pdf. i need to display this table above footer (only for that page)

 

for example

 

header

some data

(page1)

...

...

footer

 

header

date..

...

..
footer

 

header

...

....

....

 

 

2nd page from last page

 

<table data>

footer

 

header

data(last page)

footer

 

I need to display the table above footer. Not in the starting of the page or middle of the page. How can i place that table above footer. Please help me.

 

thanks

Lakshmi

Ajay_SFDCAjay_SFDC

(Assuming that your PDF is of 2 page)

 

You can set size of First page 

 

@page:first {
margin-top: 0.5cm;
margin-bottom: 0.5cm;
margin-left: 0.5cm;
margin-right: 0.5cm;
size: 220mm 300mm;
/* page-break-after:always; */
/* page-break-after:auto; */
/*border :1px solid black;*/
/*border-bottom :1px solid black;*/

}

 

(For second page )


@page{
margin-top: 0.5cm;
margin-bottom: 0.5cm;
margin-left: 0.5cm;
margin-right:0.5cm;
size: 220mm 300mm;
/* border :1px solid black; */

} */

 

 

nagalakshminagalakshmi

Hi Ajay,

 

 

Thanks for your reply. I have use the css which you have mentioned.  And if we keep the page-break-after:always;, it will give in the next page. I dont want to display that table in individual page. I need to display the table at bottom along with data. If data is more we need to dispaly that table in next page at bottom. If data is less in that page, i need to display the data along with table(at bottom). And pages are vary depend upon data. But this table will come 2 page from last page. Please help me if any idea.

 

Thanks,

Lakshmi

Ajay_SFDCAjay_SFDC

Hi Lakshami ,

 

Yes I got your problem . Here I am sharing link of CSS tutorial PDF from my dropbox. Just study it. They have mentioned float:footnote css property in Chapter 9 and 10 . Please check if that helps you .

 

Tutorial PDF link :

https://www.dropbox.com/s/q61i7foaabz0cp7/CSS-Page-Tutorial-en.pdf

 

Thanks 

Ajay