PDF <===== if (isset($_REQUEST["docformat"])): $printXml = new PrintXML_PDF(); $pdfSettings = $printXml->getPrintParams($papersize, $orientation, $maptype); $pdf = new PDF($map, $printScale, $orientation, 'pt', $papersize, $pdfSettings, $printrefmap); $pdf->Output(); exit(); // =====> HTML <===== else : $printXml = new PrintXML_HTML("/print/html/body", $printScale); $printSettings = $printXml->getPrintParams($papersize, $orientation, $maptype); //print_r($printSettings); $printMap = new PrintMap($map, $printSettings['width'], $printSettings['height'], $printScale, "html", 250, 0, $printrefmap); $printUrlList = $printMap->returnImgUrlList(); $printLegend = $printMap->returnLegStr(); $printHTML = $printXml->xmlToHtml($printUrlList, $printrefmap, $printLegend); $css = $printSettings['css'] ? " \n" : ""; header("Content-Type: text/html; charset=$defCharset"); echo "\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo $css; echo " " . _p("Print View") . "\n"; echo "\n"; echo $printHTML; echo "\n"; endif; ?>