Jump to content

quotepdf.tpl horizontal view


Danse

Recommended Posts

Hey, 

how can i turn around the first Page in the quotepdf.tpl  to have an horizontal view, so: So 297x210 instead of 210x297cm

with this command 

$pdf->AddPage('L', 'A4');

It creates a new horizontal (good) Page, but first Page remains vertical. 

Any Idea? 

Edit: 

i already tried: 

$pdf->setPageFormat( 'L','A4' );

Error: Error: Call to protected method TCPDF::setPageFormat() from context 'WHMCS\Invoice' in /va

 

EDIT2: 

I found a way, just use (and first page gets horizontal): 

 

$pdf->setPageOrientation('L');
Edited by Danse
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated