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
SFDC_LearnerSFDC_Learner 

renderas pdf with landscape page is not working

Hi

 

I used below css to get the landscape page and it is renderedAs PDF.

 

<head>
<style>
@page{
size:landscape;
}
</style>
</head>

 

The same code worked fine long ago. Now its not working.

 

Can you let me know, what reasons may cause this?

 

 

V'NathV'Nath

Hey , the following code works for me . recently tried.

 

<apex:page controller="GenerateQuote" renderas="PDF" >
<head>
<style>
@page {
size:landscape;
}
</style>
</head>

<apex:form>

 

Your content here.

</apex:form>

</apex:page>

 

Thanks,

JVN

SFDC_LearnerSFDC_Learner

Its not working now.

 

can you chk once.

Avidev9Avidev9
There was some changes in PDF engine in this release. I am not sure if this is the cause. I will definitely try this.

@SFDC_Learner: I agree with you this code was working earlier
SFDC_LearnerSFDC_Learner

Finally it is working in older versions < 28.0