original_string: public function getpdf($html)
  	{
  		// test if dompdf config exists in symfony app folder
  		$testFilePath = "/../../../../../../app/dompdf_config.inc.php";
  		if (file_exists(dirname(__FILE__).$testFilePath)) {
  			require_once(dirname(__FILE__).$testFilePath);
  		}
  		else {
  			require_once dirname(__FILE__).'/../DomPDF/dompdf_config.inc.php';
  		}
  
  		$this->pdf = new \DOMPDF();
  
  		$this->pdf->set_paper(DOMPDF_DEFAULT_PAPER_SIZE);
  		$this->pdf->load_html($html);
  		$this->pdf->render();
  	}
code: public function getpdf($html)
  	{
  		// test if dompdf config exists in symfony app folder
  		$testFilePath = "/../../../../../../app/dompdf_config.inc.php";
  		if (file_exists(dirname(__FILE__).$testFilePath)) {
  			require_once(dirname(__FILE__).$testFilePath);
  		}
  		else {
  			require_once dirname(__FILE__).'/../DomPDF/dompdf_config.inc.php';
  		}
  
  		$this->pdf = new \DOMPDF();
  
  		$this->pdf->set_paper(DOMPDF_DEFAULT_PAPER_SIZE);
  		$this->pdf->load_html($html);
  		$this->pdf->render();
  	}
code_tokens: public function getpdf ( $ html ) { // test if dompdf config exists in symfony app folder $ testFilePath = "/../../../../../../app/dompdf_config.inc.php" ; if ( file_exists ( dirname ( __FILE__ ) . $ testFilePath ) ) { require_once ( dirname ( __FILE__ ) . $ testFilePath ) ; } else { require_once dirname ( __FILE__ ) . '/../DomPDF/dompdf_config.inc.php' ; } $ this -> pdf = new \ DOMPDF ( ) ; $ this -> pdf -> set_paper ( DOMPDF_DEFAULT_PAPER_SIZE ) ; $ this -> pdf -> load_html ( $ html ) ; $ this -> pdf -> render ( ) ; }
docstring: Render a pdf document
  @param  string $html    The html to be rendered
  @param  string $docname The name of the document to be served
docstring_tokens: Render a pdf document