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); $printMap = new PrintMap($map, $printSettings['width'], $printSettings['height'], $printScale, "html", 250, 0, $printrefmap, $printSettings); $printUrlList = $printMap->returnImgUrlList(); $printLegend = $printMap->returnLegStr(); $printHTML = $printXml->xmlToHtml($printUrlList, $printrefmap, $printLegend); $css = isset($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; ?>