You need to sign in to do that
Don't have an account?
Sudhan Kanade
Can we generate editable visualforce page content into a pdf ?
I have created a editable table grid in visualforce page. Users can update some of the information on that table grid. Now once its edited. I would like to generate a PDF and send it as an attachment.
Is there a way that the updated visualforce page can be rendered as PDF so that it can be sent as an attachment ?
Thanks
Is there a way that the updated visualforce page can be rendered as PDF so that it can be sent as an attachment ?
Thanks
Say you've taken the input from user on first page, as soon as user clicks on send/create etc then you can pass those inputs to your other page's controller and render it as PDF.
Thanks for replying back to my question. I tried to implement your suggestion by creating two VF Pages, second being renderAs="PDF". But so far I am not able to pass the parameters to second page. I had tried various options, but because I am not using any standard Table component due to the transposition of the data (row being displayed as column and vice-versa) none of the solutions have worked so far. Do you have any suggestions ? So when the users update the table cells, they should get captured and display in the PDF page (VF2). But it only shows the same page without the updated data in it. I thought that by doing {!value} the data gets binded to the controller so that it can display them on different viewstate. Here is the code : -
VF1 : VF2 only has renderAs="PDF"
Apex Controller :-