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
john.krjohn.kr 

How to change the layout to landscape instead of portrait

I am creating a visualforce page in pdf,The cient said that  Please change the layout to landscape instead of portrait? How can i change please give me reply

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

     You can use the below style to get your requirement.

 

@page :first
{ 
size:landscape;
margin-top:0%;
@top-center
{
content: element(header2); 
} 
}

 Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

     You can use the below style to get your requirement.

 

@page :first
{ 
size:landscape;
margin-top:0%;
@top-center
{
content: element(header2); 
} 
}

 Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

This was selected as the best answer
john.krjohn.kr

Thank you.Your information is suitable for my requirment.Thank you very muh