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
Sudhan KanadeSudhan Kanade 

Can we dynamically set PDF Page size to portrait or landscape

I have a Visualforce page (renderedAs=pdf), which generates a table with bunch of data.  Now if the table has more than 3 columns I want to display the pdf in landscape mode else it should be portrait size.

Can we we dynamically change the CSS to get the desired results.

Thanks

SK