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
hiroji1020hiroji1020 

A3 page size

Hi

i would print page in A3 page size. The PDF print  is preferable .

please give your idea if this is possible?

Best Answer chosen by Admin (Salesforce Developers) 
yo3yo3

try the following code.

 

<apex:page renderAs="pdf">
<head>
  <style type="text/css">
      @page {
          size: A3 landscape;    /* landscape or portrait */
      }
  </style>
</head>

<!-- body -->

</apex:page>

 

All Answers

Taiki YoshikawaTaiki Yoshikawa

Visualforceで作ったPDFページでしょうか。

レイアウトをA3サイズにするのは次の感じでできたのですが、印刷設定の初期値までは反映されないみたいです。

 

@page { size: A3}

 なにか方法があればいいんですが、見つけることができませんでした。

yo3yo3

try the following code.

 

<apex:page renderAs="pdf">
<head>
  <style type="text/css">
      @page {
          size: A3 landscape;    /* landscape or portrait */
      }
  </style>
</head>

<!-- body -->

</apex:page>

 

This was selected as the best answer
hiroji1020hiroji1020

This works and thank you so much

hiroji1020hiroji1020

Printは自動でリサイズするので大丈夫だと思います。ありがとうございました。