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
Lukas van RooyenLukas van Rooyen 

Need to get report content and then convert it to pdf

Hi all. I am required to create a button that when clicked gets the report data of the current report you are on and the converts it to pdf. 

So I was thinking it could get the data with the apex class and the be displayed on a visual force page in pdf format?
VinayVinay (Salesforce Developers) 
Hi Lukas,

Yes you can use VF page to renderAs PDF to display data in pdf format.

Below are few working examples that can help you with your implementation.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_render_in_apex.htm
https://salesforce.stackexchange.com/questions/57243/how-to-create-a-visual-force-page-as-a-pdf-report-it-should-be-link-on-the-quot
https://salesforce.stackexchange.com/questions/143044/exporting-report-as-pdf
http://www.interactiveties.com/blog/2015/render-visualforce-pdf.php

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar