function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sunil PalSunil Pal 

How to use Salesforce PDF Viewer with custom PDF page ?

 Hi 

I have a Vf page in which i am having one input text for user name and and for passowrd, on click of save button i want to generate a pdf in which only both user name and password is written , in tabular format ,. 

 

 

Please suggest some way , iam not getting how to approach

 

Thanks

vbsvbs
Sunil - Try this:
1. Create a new VF page with renderAs = PDF. Use datatable for rendering a table with 2 columns
2. On click of Save button in your current VF page call the other VF page.

This should do it.
Sunil PalSunil Pal

Till here i have done but it is not showing , can you provide some sample if you have

 

Thanks for reply..

vbsvbs
Can you post code for what you have done till now? There are lots of examples on the web for this. Here is a snippet from Salesforce documentation:
http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_renderas_pdf.htm