Create Page in FPDF Tamil


AddPage

Adds a new page to the document. Then the page is added, the current position set to the top-left corner according to the left and top margins

Syntax


AddPage([string orientation [, mixed size [, int rotation]]])

Parameters

  • Orientation
  • Size
  • Rotation

Orientation

Page orientation. Possible values are.

Values
  • P or Portrait
  • L or Landscape

Size

Specified the size of the page. following values are used.

Values
  • A3
  • A4
  • A5
  • Letter
  • Legal

Rotation

Angle by which to rotate the page. It must be a multiple of 90; positive values mean clockwise rotation. The default value is 0.

Source Code

<?php
	require_once "fpdf/fpdf.php"; //fpdf supporting file
 
	//Page Creation (Default value is P;Default value is mm;default page size: A4)
	#$pdf = new FPDF(); 
	//or
	$pdf = new FPDF('P','mm','A4');
	$pdf -> AddPage();
 
	$pdf -> Output(); // Display output
?>
View Demo