Add TABLOID to tcpdf

This commit is contained in:
dave 2010-06-09 05:21:38 +00:00
parent 8438c48e4b
commit f1082a1c40

View File

@ -1910,7 +1910,7 @@ if (!class_exists('TCPDF', false)) {
* @since 5.0.010 (2010-05-17)
*/
public function getPageSizeFromFormat($format) {
// Page formats (45 standard ISO paper formats and 4 american common formats).
// Page formats (45 standard ISO paper formats and 5 american common formats).
// Paper cordinates are calculated in this way: (inches * 72) where (1 inch = 2.54 cm)
switch (strtoupper($format)) {
case '4A0': {$pf = array(4767.87,6740.79); break;}
@ -1962,6 +1962,7 @@ if (!class_exists('TCPDF', false)) {
case 'LEGAL': {$pf = array(612.00,1008.00); break;}
case 'EXECUTIVE': {$pf = array(521.86,756.00); break;}
case 'FOLIO': {$pf = array(612.00,936.00); break;}
case 'TABLOID': {$pf = array(792.00,1224.00); break;}
default: {$pf = array(595.28,841.89); break;} // DEFAULT A4
}
return $pf;