Docunext

  • About

FPDF Landscape

January 26th, 2007

I need to make FPDF output a landscape PDF instead of a portrait PDF. I also use fpdi, so I was a little unsure of how to proceed. I found this page:

http://www.fpdf.de/forum/showthread.php?t=1524

which had this code:

$pdf= new fpdi("L","pt","A4");

It works, but the scale was messed up, so I ended up just using this code instead:

$pdf= new fpdi("L");

That is awesome, I'll be experimenting with that more.

¥

Yearly Indexes: 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020