Example #1
0
 /**
  * Process to render block contents
  * 
  * @param ezcDocumentPdfPage $page 
  * @param ezcDocumentPdfHyphenator $hyphenator 
  * @param ezcDocumentPdfTokenizer $tokenizer 
  * @param ezcDocumentLocateableDomElement $block 
  * @param ezcDocumentPdfMainRenderer $mainRenderer 
  * @return void
  */
 protected function process(ezcDocumentPdfPage $page, ezcDocumentPdfHyphenator $hyphenator, ezcDocumentPdfTokenizer $tokenizer, ezcDocumentLocateableDomElement $block, ezcDocumentPdfMainRenderer $mainRenderer)
 {
     // Render list item
     if (($listItem = $this->generator->getListItem($this->item)) !== '') {
         $styles = $this->styles->inferenceFormattingRules($block);
         $this->driver->drawWord($page->x + $page->xOffset - $styles['padding']->value['left'], $page->y + $styles['font-size']->value, $listItem);
     }
     // Render list contents
     $mainRenderer->process($block);
 }
Example #2
0
 /**
  * Process to render block contents.
  * 
  * @param ezcDocumentPdfPage $page 
  * @param ezcDocumentPdfHyphenator $hyphenator 
  * @param ezcDocumentPdfTokenizer $tokenizer 
  * @param ezcDocumentLocateableDomElement $block 
  * @param ezcDocumentPdfMainRenderer $mainRenderer 
  */
 protected function process(ezcDocumentPdfPage $page, ezcDocumentPdfHyphenator $hyphenator, ezcDocumentPdfTokenizer $tokenizer, ezcDocumentLocateableDomElement $block, ezcDocumentPdfMainRenderer $mainRenderer)
 {
     $mainRenderer->process($block);
 }