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
Varun99Varun99 

A5 size visual force page

Hello,

 

 

   How to display renderas="pdf" visual force page in A5 size am using like

 

<head>
<style>
@page :first
{
size:landscape;
margin-top:0%;
@top-center
{
content: element(header2);
}
}
@page
{
size:landscape;
margin-top:18%;
}
</style>

</head>

 

Is it correct way to set size in A5 page?

 

Can any one help?

 

 

Thank you

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Hengky IlawanHengky Ilawan
Hi,

I didn't try this myself but should be correct I think

@page {
size: A5 landscape;
}

-Hengky-

All Answers

Hengky IlawanHengky Ilawan
Hi,

I didn't try this myself but should be correct I think

@page {
size: A5 landscape;
}

-Hengky-
This was selected as the best answer
Varun99Varun99

hi,

 

 

    Thanks for your reply. It is working in my developer account but sand box not showing any difference display

pdf only any settings for sand box?

 

 

Thank you

Hengky IlawanHengky Ilawan

Hi.

 

They should be the same.

Do you have different API version between the orgs?

 

-Hengky-

Varun99Varun99

Hi,

 

Thanks it is working. I have created a new page and apply it its working fine.