Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FPDF

Status
Not open for further replies.

storm197

MIS
Oct 9, 2002
55
CA
Hi,

I'm learning how to use FPDF.

There is a function we can use to create the PDF which is:

$pdf=new FPDF('P','mm','Letter');

P means Portrait
mm is the unit of the size
Letter is the paper size.

It is written that we can specify a custom size
"in the form of a two-element array containing the width and the height (expressed in the unit given by unit)."

Can anyone show me an example of this ? (two-element array)
 
A two-element array can be expressed as something like:

$a = array (1,2);

If you reference $a[0] or $a[1], you are referencing a single element of the array. A reference to a$ is a reference to the entire two-element array.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Working!

Thanx sleipnir214, you are really of great help!!!
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top