# Paper sizes in FPDF

*From*: jodleren <sonnich@xxxxxx>*Date*: Mon, 30 Nov 2009 07:59:36 -0800 (PST)

Hello

I have used FPDF for our documentation, and now they found that we

need bigger sizes - some new drawings are in - I guess - A2. And FPDF

can only handle max A3.

In the file fpdf.php line 119, I have updated this:

//Page format

$this->PageFormats=array(

'a0'=>array(2383.94,3370.39),

'a1'=>array(1683.78,2383.94),

'a2'=>array(1190.55,1683.78),

'a3'=>array(841.89,1190.55),

'a4'=>array(595.28,841.89),

'a5'=>array(420.94,595.28),

'a6'=>array(297.64,420.94),

'a7'=>array(209.76,297.64),

'a8'=>array(147.40,209.76),

'a9'=>array(104.88,147.40),

'a10'=>array(73.30,104.88),

'ledger'=>array(1224,792),

'tabloid'=>array(792,1008)

'letter'=>array(612,792),

'legal'=>array(612,1008)

'junior legal'=>array(576,360));

I want to share this, but also ask- is this right?

Accoding to:

http://en.wikipedia.org/wiki/Paper_size

1) American sizes are easy, the number about should be 72 dpi, so 8

inches = 8 * 72 = 576.

2) new A sizes are odd - they should be twice as big, but e.g the jump

from A2 to A1 increases by 1 mm (420 to twice that = 840 mm, but it is

841 mm?!?!).

Anyway, I calculated them as = size / 25,4 * 72

Any comments anyone?

WBR

Sonnich

.

**Follow-Ups**:**Re: Paper sizes in FPDF***From:*Willem Bogaerts

- Prev by Date:
**Re: PDO and associative arrays** - Next by Date:
**Re: Paper sizes in FPDF** - Previous by thread:
**PDO and associative arrays** - Next by thread:
**Re: Paper sizes in FPDF** - Index(es):