application/libraries/Pdf.php
/**
	 * Load a CodeIgniter view into domPDF
	 *
	 * @access	public
	 * @param	string	$view The view to load
	 * @param	array	$data The view data
	 * @return	void
	 */
Load a CodeIgniter view into domPDF
@access      public
@param       string  $view The view to load
@param       array   $data The view data
@return      void
Load a CodeIgniter view into domPDF @access public @param string $view The view to load @param array $data The view data @return void
public function load_view($view, $data = array())
	{
		ini_set('memory_limit', '1000M');
		$html = $this->ci()->load->view($view, $data, TRUE);
		$options = new Options();
		$options->setIsRemoteEnabled(true);
		$this->setOptions($options);
		$this->load_html($html);
        $this->render();
	}
public function load_view ( $ view , $ data = array ( ) ) { ini_set ( 'memory_limit' , '1000M' ) ; $ html = $ this -> ci ( ) -> load -> view ( $ view , $ data , TRUE ) ; $ options = new Options ( ) ; $ options -> setIsRemoteEnabled ( true ) ; $ this -> setOptions ( $ options ) ; $ this -> load_html ( $ html ) ; $ this -> render ( ) ; }
Load a CodeIgniter view into domPDF
 @access      public
 @param       string  $view The view to load
 @param       array   $data The view data
 @return      void
Load a CodeIgniter view into domPDF @access public @param string $view The view to load @param array $data The view data @return void
//$this->stream("laporan.pdf", array('Attachment'=>0));