Page2: controller: public class DataDisplayController { public String PDFData {get; set;} public DataDisplayController(){ // PDFData = ''; } public PageReference downloadPDF(){ System.PageReference pageRef = new System.PageReference('/apex/AccountPdfPage'); //ensure pdf downloads and is assigned with defined name pageRef.getHeaders().put('content-disposition', 'attachment; filename=RWAForm.pdf'); return pageRef; } } Regards, Raju",
"answerCount": 2,
"upvoteCount": 0,
"datePublished": "2021-04-20T15:51:15.000Z",
"author": {
"@type": "Person",
"name": "Nagaraju Chigicherla",
"url": "https://trailblazers.salesforce.com/profileView?u=0053A00000CxQE9QAN",
"affiliation": {
"@type": "Organization",
"name": "Daimler Truck Innovation Center"
}
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "Hi Suraj, My requirement is smilar to First Option and i have tried based on Webstite. But when click on button it is navigating to pdf page but not displaing data . showing empty screen. Regards, Raj",
"upvoteCount": 0,
"url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4TnFSAV",
"datePublished": "2021-04-20T18:22:57.000Z",
"author": {
"@type": "Person",
"name": "Nagaraju Chigicherla",
"url": "https://trailblazers.salesforce.com/profileView?u=0053A00000CxQE9QAN",
"affiliation": {
"@type": "Organization",
"name": "Daimler Truck Innovation Center"
}
}
}
]
}
}
Hi Suraj,My requirement is smilar to First Option and i have tried based on Webstite.But when click on button it is navigating to pdf page but not displaing data . showing empty screen.Regards,Raj