Revert "My first commit of codes"

This reverts commit a6e5a69348.
This commit is contained in:
sujitprasad
2015-05-01 13:27:00 +05:30
parent 6f37d10de3
commit 16ea6e1984
8487 changed files with 0 additions and 1317246 deletions

View File

@@ -1,37 +0,0 @@
<?php
/**
* @package dompdf
* @link http://dompdf.github.com/
* @author Fabien Ménager <fabien.menager@gmail.com>
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
*/
/**
* Embeds Javascript into the PDF document
*
* @access private
* @package dompdf
*/
class Javascript_Embedder {
/**
* @var DOMPDF
*/
protected $_dompdf;
function __construct(DOMPDF $dompdf) {
$this->_dompdf = $dompdf;
}
function insert($script) {
$this->_dompdf->get_canvas()->javascript($script);
}
function render(Frame $frame) {
if ( !$this->_dompdf->get_option("enable_javascript") ) {
return;
}
$this->insert($frame->get_node()->nodeValue);
}
}