Jump to content
Danse

quotepdf.tpl horizontal view

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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