ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPhantomJSRenderer Class Reference
+ Inheritance diagram for ilPhantomJSRenderer:
+ Collaboration diagram for ilPhantomJSRenderer:

Public Member Functions

 __construct ($phpunit=false)
 
 getPluginName ()
 
 addConfigElementsToForm (\ilPropertyFormGUI $form, $service, $purpose)
 from ilRendererConfig More...
 
 populateConfigElementsInForm (\ilPropertyFormGUI $form, $service, $purpose, $config)
 from ilRendererConfig More...
 
 validateConfigInForm (\ilPropertyFormGUI $form, $service, $purpose)
 from ilRendererConfig More...
 
 getConfigFromForm (\ilPropertyFormGUI $form, $service, $purpose)
 from ilRendererConfig More...
 
 getDefaultConfig ($service, $purpose)
 from ilRendererConfig More...
 
 prepareGenerationRequest ($service, $purpose)
 Prepare the content processing at the beginning of a PDF generation request Should be used to initialize the processing of latex code The PDF renderers require different image formats generated by the MathJax service. More...
 
 generatePDF ($service, $purpose, $config, $job)
 from ilPDFRenderer More...
 
 getPdfTempName ()
 
 getHtmlTempName ()
 

Data Fields

const PAGE = 0
 
const VIEWPORT = 1
 

Protected Member Functions

 setLanguage ($lng)
 
 buildHeaderTextForm ()
 
 buildHeaderHeightForm ()
 
 buildViewPortForm ()
 
 buildHeaderPageNumbersForm ()
 
 buildFooterTextForm ()
 
 buildFooterHeightForm ()
 
 buildFooterPageNumbersForm ()
 
 buildPageSizesForm ()
 
 buildOrientationForm ()
 
 buildMarginForm ()
 
 buildJavascriptDelayForm ()
 
 getTempFileName ($file_type)
 
 getCommandLineConfig ($config)
 

Protected Attributes

 $lng
 
 $path_to_rasterize = './Services/PDFGeneration/js/rasterize.js'
 
 $use_default_config
 
 $page_size
 
 $orientation
 
 $margin
 
 $javascript_delay
 
 $viewport
 
 $header_type
 
 $footer_type
 
 $header_text
 
 $header_height
 
 $header_show_pages
 
 $footer_text
 
 $footer_height
 
 $footer_show_pages
 
 $path
 
 $page_type = self::PAGE
 
 $do_not_validate_ssl = ' --ssl-protocol=any --ignore-ssl-errors=true '
 

Detailed Description

Definition at line 7 of file class.ilPhantomJSRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

ilPhantomJSRenderer::__construct (   $phpunit = false)

Definition at line 18 of file class.ilPhantomJSRenderer.php.

References $DIC, and setLanguage().

19  {
20  if (!$phpunit) {
21  global $DIC;
22  $this->setLanguage($DIC['lng']);
23  }
24  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

Member Function Documentation

◆ addConfigElementsToForm()

ilPhantomJSRenderer::addConfigElementsToForm ( \ilPropertyFormGUI  $form,
  $service,
  $purpose 
)

from ilRendererConfig

Parameters
\ilPropertyFormGUI$form
string$service
string$purpose
Returns
|void

Implements ilRendererConfig.

Definition at line 136 of file class.ilPhantomJSRenderer.php.

References $footer_text, $header_text, $path, ilPropertyFormGUI\addItem(), ilRadioGroupInputGUI\addOption(), ilSubEnabledFormPropertyGUI\addSubItem(), buildFooterHeightForm(), buildFooterPageNumbersForm(), buildFooterTextForm(), buildHeaderHeightForm(), buildHeaderPageNumbersForm(), buildHeaderTextForm(), buildJavascriptDelayForm(), buildMarginForm(), buildOrientationForm(), buildPageSizesForm(), buildViewPortForm(), ilPDFGenerationConstants\FOOTER_NONE, ilPDFGenerationConstants\FOOTER_TEXT, ilPDFGenerationConstants\HEADER_NONE, and ilPDFGenerationConstants\HEADER_TEXT.

137  {
138  $path = new ilTextInputGUI($this->lng->txt('path'), 'path');
139  $path->setValue($this->path);
140  $form->addItem($path);
141 
142  $item_group = new ilRadioGroupInputGUI($this->lng->txt('page_settings'), 'page_type');
143 
144  $op = new ilRadioOption($this->lng->txt('page'), self::PAGE);
145  $op->addSubItem($this->buildMarginForm());
146  $op->addSubItem($this->buildOrientationForm());
147  $op->addSubItem($this->buildPageSizesForm());
148  $header_select = new ilRadioGroupInputGUI($this->lng->txt('header_type'), 'header_select');
149  $header_select->addOption(new ilRadioOption($this->lng->txt('none'), ilPDFGenerationConstants::HEADER_NONE, ''));
150  $header_text = new ilRadioOption($this->lng->txt('text'), ilPDFGenerationConstants::HEADER_TEXT, '');
151  $header_text->addSubItem($this->buildHeaderTextForm());
152  $header_text->addSubItem($this->buildHeaderHeightForm());
153  $header_text->addSubItem($this->buildHeaderPageNumbersForm());
154  $header_select->addOption($header_text);
155  $header_select->setValue($this->header_type);
156  $op->addSubItem($header_select);
157  $footer_select = new ilRadioGroupInputGUI($this->lng->txt('footer_type'), 'footer_select');
158  $footer_select->addOption(new ilRadioOption($this->lng->txt('none'), ilPDFGenerationConstants::FOOTER_NONE, ''));
159  $footer_text = new ilRadioOption($this->lng->txt('text'), ilPDFGenerationConstants::FOOTER_TEXT, '');
160  $footer_text->addSubItem($this->buildFooterTextForm());
161  $footer_text->addSubItem($this->buildFooterHeightForm());
162  $footer_text->addSubItem($this->buildFooterPageNumbersForm());
163  $footer_select->addOption($footer_text);
164  $footer_select->setValue($this->footer_type);
165  $op->addSubItem($footer_select);
166  $item_group->addOption($op);
167 
168  $op = new ilRadioOption($this->lng->txt('viewport'), self::VIEWPORT);
169  $op->addSubItem($this->buildViewPortForm());
170  $item_group->addOption($op);
171  $item_group->setValue($this->page_type);
172  $form->addItem($item_group);
173 
174  $form->addItem($this->buildJavascriptDelayForm());
175  }
This class represents an option in a radio group.
This class represents a property in a property form.
addOption($a_option)
Add Option.
if(isset($_POST['submit'])) $form
This class represents a text property in a property form.
+ Here is the call graph for this function:

◆ buildFooterHeightForm()

ilPhantomJSRenderer::buildFooterHeightForm ( )
protected
Returns
ilTextInputGUI

Definition at line 412 of file class.ilPhantomJSRenderer.php.

References $footer_height.

Referenced by addConfigElementsToForm().

413  {
414  $footer_height = new ilTextInputGUI($this->lng->txt('footer_height'), 'footer_height');
415  $footer_height->setValue($this->footer_height);
416  return $footer_height;
417  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildFooterPageNumbersForm()

ilPhantomJSRenderer::buildFooterPageNumbersForm ( )
protected
Returns
ilCheckboxInputGUI

Definition at line 422 of file class.ilPhantomJSRenderer.php.

References $footer_show_pages.

Referenced by addConfigElementsToForm().

423  {
424  $footer_show_pages = new ilCheckboxInputGUI($this->lng->txt('footer_show_pages'), 'footer_show_pages');
425  if ($this->footer_show_pages == true || $this->footer_show_pages == 1) {
426  $footer_show_pages->setChecked(true);
427  }
428  return $footer_show_pages;
429  }
This class represents a checkbox property in a property form.
+ Here is the caller graph for this function:

◆ buildFooterTextForm()

ilPhantomJSRenderer::buildFooterTextForm ( )
protected
Returns
ilTextInputGUI

Definition at line 402 of file class.ilPhantomJSRenderer.php.

References $footer_text.

Referenced by addConfigElementsToForm().

403  {
404  $footer_text = new ilTextInputGUI($this->lng->txt('footer_text'), 'footer_text');
405  $footer_text->setValue($this->footer_text);
406  return $footer_text;
407  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildHeaderHeightForm()

ilPhantomJSRenderer::buildHeaderHeightForm ( )
protected
Returns
ilTextInputGUI

Definition at line 369 of file class.ilPhantomJSRenderer.php.

References $header_height.

Referenced by addConfigElementsToForm().

370  {
371  $header_height = new ilTextInputGUI($this->lng->txt('header_height'), 'header_height');
372  $header_height->setValue($this->header_height);
373  return $header_height;
374  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildHeaderPageNumbersForm()

ilPhantomJSRenderer::buildHeaderPageNumbersForm ( )
protected
Returns
ilCheckboxInputGUI

Definition at line 390 of file class.ilPhantomJSRenderer.php.

References $header_show_pages.

Referenced by addConfigElementsToForm().

391  {
392  $header_show_pages = new ilCheckboxInputGUI($this->lng->txt('header_show_pages'), 'header_show_pages');
393  if ($this->header_show_pages == true || $this->header_show_pages == 1) {
394  $header_show_pages->setChecked(true);
395  }
396  return $header_show_pages;
397  }
This class represents a checkbox property in a property form.
+ Here is the caller graph for this function:

◆ buildHeaderTextForm()

ilPhantomJSRenderer::buildHeaderTextForm ( )
protected
Returns
ilTextInputGUI

Definition at line 359 of file class.ilPhantomJSRenderer.php.

References $header_text.

Referenced by addConfigElementsToForm().

360  {
361  $header_text = new ilTextInputGUI($this->lng->txt('head_text'), 'header_text');
362  $header_text->setValue($this->header_text);
363  return $header_text;
364  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildJavascriptDelayForm()

ilPhantomJSRenderer::buildJavascriptDelayForm ( )
protected
Returns
ilTextInputGUI

Definition at line 466 of file class.ilPhantomJSRenderer.php.

References $javascript_delay.

Referenced by addConfigElementsToForm().

467  {
468  $javascript_delay = new ilTextInputGUI($this->lng->txt('javascript_delay'), 'javascript_delay');
469  $javascript_delay->setInfo($this->lng->txt('javascript_delay_info'));
470  $javascript_delay->setValue($this->javascript_delay);
471  return $javascript_delay;
472  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildMarginForm()

ilPhantomJSRenderer::buildMarginForm ( )
protected
Returns
ilTextInputGUI

Definition at line 456 of file class.ilPhantomJSRenderer.php.

References $margin.

Referenced by addConfigElementsToForm().

457  {
458  $margin = new ilTextInputGUI($this->lng->txt('margin'), 'margin');
459  $margin->setValue($this->margin);
460  return $margin;
461  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ buildOrientationForm()

ilPhantomJSRenderer::buildOrientationForm ( )
protected
Returns
ilSelectInputGUI

Definition at line 445 of file class.ilPhantomJSRenderer.php.

References $orientation, and ilPDFGenerationConstants\getOrientations().

Referenced by addConfigElementsToForm().

446  {
447  $orientation = new ilSelectInputGUI($this->lng->txt('orientation'), 'orientation');
449  $orientation->setValue($this->orientation);
450  return $orientation;
451  }
This class represents a selection list property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildPageSizesForm()

ilPhantomJSRenderer::buildPageSizesForm ( )
protected
Returns
ilSelectInputGUI

Definition at line 434 of file class.ilPhantomJSRenderer.php.

References $page_size, and ilPDFGenerationConstants\getPageSizesNames().

Referenced by addConfigElementsToForm().

435  {
436  $page_size = new ilSelectInputGUI($this->lng->txt('page_size'), 'page_size');
438  $page_size->setValue($this->page_size);
439  return $page_size;
440  }
This class represents a selection list property in a property form.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildViewPortForm()

ilPhantomJSRenderer::buildViewPortForm ( )
protected
Returns
ilTextInputGUI

Definition at line 379 of file class.ilPhantomJSRenderer.php.

References $viewport.

Referenced by addConfigElementsToForm().

380  {
381  $viewport = new ilTextInputGUI($this->lng->txt('viewport'), 'viewport');
382  $viewport->setValue($this->viewport);
383  $viewport->setInfo($this->lng->txt('viewport_info'));
384  return $viewport;
385  }
This class represents a text property in a property form.
+ Here is the caller graph for this function:

◆ generatePDF()

ilPhantomJSRenderer::generatePDF (   $service,
  $purpose,
  $config,
  $job 
)

from ilPDFRenderer

Parameters
string$service
string$purpose
array$config
\ilPDFGenerationJob$job
Returns
string|void

Implements ilPDFRenderer.

Definition at line 319 of file class.ilPhantomJSRenderer.php.

References $config, $ilLog, $key, ilUtil\execQuoted(), getCommandLineConfig(), getHtmlTempName(), getPdfTempName(), and ilFileUtils\rename().

320  {
321  $html_file = $this->getHtmlTempName();
322  file_put_contents($html_file, implode('', $job->getPages()));
323  $this->createPDFFileFromHTMLFile($html_file, $config, $job);
324  }
$config
Definition: bootstrap.php:15
+ Here is the call graph for this function:

◆ getCommandLineConfig()

ilPhantomJSRenderer::getCommandLineConfig (   $config)
protected
Parameters
$config
Returns
string

Definition at line 508 of file class.ilPhantomJSRenderer.php.

References $config, ilPDFGenerationConstants\FOOTER_TEXT, and ilPDFGenerationConstants\HEADER_TEXT.

Referenced by generatePDF().

509  {
510  $r_config = array();
511 
512  if ($config['header_type'] == ilPDFGenerationConstants::HEADER_TEXT) {
513  $h_config = array(
514  'text' => $config['header_text'],
515  'height' => $config['header_height'],
516  'show_pages' => $config['header_show_pages']);
517  } else {
518  $h_config = null;
519  }
520 
521  if ($config['footer_type'] == ilPDFGenerationConstants::FOOTER_TEXT) {
522  $f_config = array(
523  'text' => $config['footer_text'],
524  'height' => $config['footer_height'],
525  'show_pages' => $config['footer_show_pages']);
526  } else {
527  $f_config = null;
528  }
529 
530  $r_config['page_size'] = $config['page_size'];
531  $r_config['orientation'] = $config['orientation'];
532  $r_config['margin'] = $config['margin'];
533  $r_config['delay'] = $config['javascript_delay'];
534  $r_config['viewport'] = $config['viewport'];
535  $r_config['header'] = $h_config;
536  $r_config['footer'] = $f_config;
537  $r_config['page_type'] = $config['page_type'];
538 
539  return json_encode(json_encode($r_config));
540  }
$config
Definition: bootstrap.php:15
+ Here is the caller graph for this function:

◆ getConfigFromForm()

ilPhantomJSRenderer::getConfigFromForm ( \ilPropertyFormGUI  $form,
  $service,
  $purpose 
)

from ilRendererConfig

Parameters
\ilPropertyFormGUI$form
string$service
string$purpose
Returns
array

Implements ilRendererConfig.

Definition at line 234 of file class.ilPhantomJSRenderer.php.

References $config, and ilPropertyFormGUI\getItemByPostVar().

235  {
236  $config = array();
237  $config['path'] = $form->getItemByPostVar('path')->getValue();
238  $config['page_size'] = $form->getItemByPostVar('page_size')->getValue();
239  $config['margin'] = $form->getItemByPostVar('margin')->getValue();
240  $config['javascript_delay'] = $form->getItemByPostVar('javascript_delay')->getValue();
241  $config['viewport'] = $form->getItemByPostVar('viewport')->getValue();
242  $config['orientation'] = $form->getItemByPostVar('orientation')->getValue();
243  $config['header_type'] = $form->getItemByPostVar('header_select')->getValue();
244  $config['header_text'] = $form->getItemByPostVar('header_text')->getValue();
245  $config['header_height'] = $form->getItemByPostVar('header_height')->getValue();
246  $config['header_show_pages'] = $form->getItemByPostVar('header_show_pages')->getChecked();
247  $config['footer_type'] = $form->getItemByPostVar('footer_select')->getValue();
248  $config['footer_text'] = $form->getItemByPostVar('footer_text')->getValue();
249  $config['footer_height'] = $form->getItemByPostVar('footer_height')->getValue();
250  $config['footer_show_pages'] = $form->getItemByPostVar('footer_show_pages')->getChecked();
251  $config['page_type'] = $form->getItemByPostVar('page_type')->getValue();
252 
253  return $config;
254  }
$config
Definition: bootstrap.php:15
if(isset($_POST['submit'])) $form
+ Here is the call graph for this function:

◆ getDefaultConfig()

ilPhantomJSRenderer::getDefaultConfig (   $service,
  $purpose 
)

from ilRendererConfig

Parameters
string$service
string$purpose
Returns
array

Implements ilRendererConfig.

Definition at line 264 of file class.ilPhantomJSRenderer.php.

References $config, and PATH_TO_PHANTOMJS.

265  {
266  $config = array();
267  if (PATH_TO_PHANTOMJS !== '') {
268  $config['path'] = PATH_TO_PHANTOMJS;
269  } else {
270  $config['path'] = '/usr/local/bin/phantomjs';
271  }
272 
273  $config['page_size'] = 'A4';
274  $config['margin'] = '1cm';
275  $config['javascript_delay'] = 200;
276  $config['viewport'] = '';
277  $config['orientation'] = 'Portrait';
278  $config['header_type'] = 0;
279  $config['header_text'] = '';
280  $config['header_height'] = '0cm';
281  $config['header_show_pages'] = 0;
282  $config['footer_type'] = 0;
283  $config['footer_text'] = '';
284  $config['footer_height'] = '0cm';
285  $config['footer_show_pages'] = 0;
286  $config['page_type'] = self::PAGE;
287 
288  return $config;
289  }
$config
Definition: bootstrap.php:15
const PATH_TO_PHANTOMJS

◆ getHtmlTempName()

ilPhantomJSRenderer::getHtmlTempName ( )
Returns
string

Definition at line 485 of file class.ilPhantomJSRenderer.php.

References getTempFileName().

Referenced by generatePDF().

486  {
487  return $this->getTempFileName('html');
488  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPdfTempName()

ilPhantomJSRenderer::getPdfTempName ( )
Returns
string

Definition at line 477 of file class.ilPhantomJSRenderer.php.

References getTempFileName().

Referenced by generatePDF().

478  {
479  return $this->getTempFileName('pdf');
480  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPluginName()

ilPhantomJSRenderer::getPluginName ( )
Returns
string

Definition at line 117 of file class.ilPhantomJSRenderer.php.

118  {
119  return $this->lng->txt('pdfgen_renderer_dummyrender_plugname');
120  }

◆ getTempFileName()

ilPhantomJSRenderer::getTempFileName (   $file_type)
protected
Parameters
$file_type
Returns
string

Definition at line 494 of file class.ilPhantomJSRenderer.php.

References ilUtil\ilTempnam().

Referenced by getHtmlTempName(), and getPdfTempName().

495  {
496  if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && $file_type == 'html') {
497  return 'file:///' . str_replace(':/', '://', ilUtil::ilTempnam()) . '.' . $file_type;
498  } else {
499  return ilUtil::ilTempnam() . '.' . $file_type;
500  }
501  }
static ilTempnam($a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateConfigElementsInForm()

ilPhantomJSRenderer::populateConfigElementsInForm ( \ilPropertyFormGUI  $form,
  $service,
  $purpose,
  $config 
)

from ilRendererConfig

Parameters
\ilPropertyFormGUI$form
string$service
string$purpose
array$config
Returns
void

Implements ilRendererConfig.

Definition at line 187 of file class.ilPhantomJSRenderer.php.

References $config, ilPropertyFormGUI\getItemByPostVar(), and ilPDFGeneratorUtils\setCheckedIfTrue().

188  {
189  $form->getItemByPostVar('path')->setValue($config['path']);
190  $form->getItemByPostVar('page_size')->setValue($config['page_size']);
191  $form->getItemByPostVar('margin')->setValue($config['margin']);
192  $form->getItemByPostVar('javascript_delay')->setValue($config['javascript_delay']);
193  $form->getItemByPostVar('viewport')->setValue($config['viewport']);
194  $form->getItemByPostVar('orientation')->setValue($config['orientation']);
195  $form->getItemByPostVar('header_select')->setValue($config['header_type']);
196  $form->getItemByPostVar('header_text')->setValue($config['header_text']);
197  $form->getItemByPostVar('header_height')->setValue($config['header_height']);
198  $form->getItemByPostVar('header_show_pages')->setChecked($config['header_show_pages']);
199  $form->getItemByPostVar('footer_select')->setValue($config['footer_type']);
200  $form->getItemByPostVar('footer_text')->setValue($config['footer_text']);
201  $form->getItemByPostVar('footer_height')->setValue($config['footer_height']);
202  $form->getItemByPostVar('footer_show_pages')->setChecked($config['footer_show_pages']);
203  $form->getItemByPostVar('page_type')->setValue($config['page_type']);
204 
206  }
$config
Definition: bootstrap.php:15
static setCheckedIfTrue(\ilPropertyFormGUI $form)
if(isset($_POST['submit'])) $form
+ Here is the call graph for this function:

◆ prepareGenerationRequest()

ilPhantomJSRenderer::prepareGenerationRequest (   $service,
  $purpose 
)

Prepare the content processing at the beginning of a PDF generation request Should be used to initialize the processing of latex code The PDF renderers require different image formats generated by the MathJax service.

Parameters
string$service
string$purpose
Returns
void

Implements ilPDFRenderer.

Definition at line 301 of file class.ilPhantomJSRenderer.php.

References ilMathJax\getInstance(), ilMathJax\PURPOSE_PDF, and ilMathJax\RENDER_SVG_AS_XML_EMBED.

302  {
304  ->init(ilMathJax::PURPOSE_PDF)
305  ->setRendering(ilMathJax::RENDER_SVG_AS_XML_EMBED);
306  }
const PURPOSE_PDF
static getInstance()
Singleton: get instance.
const RENDER_SVG_AS_XML_EMBED
+ Here is the call graph for this function:

◆ setLanguage()

ilPhantomJSRenderer::setLanguage (   $lng)
protected
Parameters
$lng

Definition at line 29 of file class.ilPhantomJSRenderer.php.

References $lng.

Referenced by __construct().

30  {
31  $this->lng = $lng;
32  }
+ Here is the caller graph for this function:

◆ validateConfigInForm()

ilPhantomJSRenderer::validateConfigInForm ( \ilPropertyFormGUI  $form,
  $service,
  $purpose 
)

from ilRendererConfig

Parameters
\ilPropertyFormGUI$form
string$service
string$purpose
Returns
bool

Implements ilRendererConfig.

Definition at line 217 of file class.ilPhantomJSRenderer.php.

218  {
219  if (true) {
220  return true;
221  }
222  return false;
223  }

Field Documentation

◆ $do_not_validate_ssl

ilPhantomJSRenderer::$do_not_validate_ssl = ' --ssl-protocol=any --ignore-ssl-errors=true '
protected

Definition at line 125 of file class.ilPhantomJSRenderer.php.

◆ $footer_height

ilPhantomJSRenderer::$footer_height
protected

Definition at line 97 of file class.ilPhantomJSRenderer.php.

Referenced by buildFooterHeightForm().

◆ $footer_show_pages

ilPhantomJSRenderer::$footer_show_pages
protected

Definition at line 102 of file class.ilPhantomJSRenderer.php.

Referenced by buildFooterPageNumbersForm().

◆ $footer_text

ilPhantomJSRenderer::$footer_text
protected

Definition at line 92 of file class.ilPhantomJSRenderer.php.

Referenced by addConfigElementsToForm(), and buildFooterTextForm().

◆ $footer_type

ilPhantomJSRenderer::$footer_type
protected

Definition at line 72 of file class.ilPhantomJSRenderer.php.

◆ $header_height

ilPhantomJSRenderer::$header_height
protected

Definition at line 82 of file class.ilPhantomJSRenderer.php.

Referenced by buildHeaderHeightForm().

◆ $header_show_pages

ilPhantomJSRenderer::$header_show_pages
protected

Definition at line 87 of file class.ilPhantomJSRenderer.php.

Referenced by buildHeaderPageNumbersForm().

◆ $header_text

ilPhantomJSRenderer::$header_text
protected

Definition at line 77 of file class.ilPhantomJSRenderer.php.

Referenced by addConfigElementsToForm(), and buildHeaderTextForm().

◆ $header_type

ilPhantomJSRenderer::$header_type
protected

Definition at line 67 of file class.ilPhantomJSRenderer.php.

◆ $javascript_delay

ilPhantomJSRenderer::$javascript_delay
protected

Definition at line 57 of file class.ilPhantomJSRenderer.php.

Referenced by buildJavascriptDelayForm().

◆ $lng

ilPhantomJSRenderer::$lng
protected

Definition at line 13 of file class.ilPhantomJSRenderer.php.

Referenced by setLanguage().

◆ $margin

ilPhantomJSRenderer::$margin
protected

Definition at line 52 of file class.ilPhantomJSRenderer.php.

Referenced by buildMarginForm().

◆ $orientation

ilPhantomJSRenderer::$orientation
protected

Definition at line 47 of file class.ilPhantomJSRenderer.php.

Referenced by buildOrientationForm().

◆ $page_size

ilPhantomJSRenderer::$page_size
protected

Definition at line 42 of file class.ilPhantomJSRenderer.php.

Referenced by buildPageSizesForm().

◆ $page_type

ilPhantomJSRenderer::$page_type = self::PAGE
protected

Definition at line 112 of file class.ilPhantomJSRenderer.php.

◆ $path

ilPhantomJSRenderer::$path
protected

Definition at line 107 of file class.ilPhantomJSRenderer.php.

Referenced by addConfigElementsToForm().

◆ $path_to_rasterize

ilPhantomJSRenderer::$path_to_rasterize = './Services/PDFGeneration/js/rasterize.js'
protected

Definition at line 16 of file class.ilPhantomJSRenderer.php.

◆ $use_default_config

ilPhantomJSRenderer::$use_default_config
protected

Definition at line 37 of file class.ilPhantomJSRenderer.php.

◆ $viewport

ilPhantomJSRenderer::$viewport
protected

Definition at line 62 of file class.ilPhantomJSRenderer.php.

Referenced by buildViewPortForm().

◆ PAGE

const ilPhantomJSRenderer::PAGE = 0

Definition at line 9 of file class.ilPhantomJSRenderer.php.

◆ VIEWPORT

const ilPhantomJSRenderer::VIEWPORT = 1

Definition at line 10 of file class.ilPhantomJSRenderer.php.


The documentation for this class was generated from the following file: