public function generatepage_pdf(){
		foreach($this->rules as &$c){
			$this->positions[$c->position]=$c->output;
			}
		header("Content-type: application/pdf");
		echo $this->positions['content'];
		}