You need to sign in to do that
Don't have an account?
rohitr
Render part of VF page as pdf
Is it possible to render part of a VF page as pdf.
I don't want the entire page to be rendered as pdf because the user should have an option to select a date on the VF page. On selecting the date, the bottom part must be rendered as pdf.
How can i achieve this?
Thanks in Advance,
Rohit R
Thanks Rahul,
But how can i call the another page when i click a button.
I've a date to be chosen on first page absed on which controller has to fetch records from an object and display in another page rendered as pdf.
How can this be achieved?
Regards,
Rohit R
We had a similar requirement in which we need to use same Vf page as PDF and normal page.
We added a parameter in the URL to distinguish if the page was rendered as PDF and then controlled/dynamically rendered components in the page as per the parameter
<apex:page renderAs="{!IF($CurrentPage.parameters.isPDF == null, null, 'pdf')}">
<! other content --!>
<apex:commandLink action="{!URLFOR($Action.student__c.view,student.id)}" value="Back To Student" rendered="{!IF($CurrentPage.parameters.isPDF== null ,true,false) }"/>
</apex:page>