示例#1
0
 private function getTemplateDrawingTasksAndFormatPlaceholders(Document $document)
 {
     $this->formatConvertAttributes($document);
     $this->getHeader()->format($document);
     $this->getFooter()->format($document);
     $this->getWatermark()->format($document);
     $tasks = new DrawingTaskHeap();
     $this->getDrawingTasksFromComplexAttributes($document, $tasks);
     $this->footer->collectOrderedDrawingTasks($document, $tasks);
     $this->header->collectOrderedDrawingTasks($document, $tasks);
     $this->watermark->collectOrderedDrawingTasks($document, $tasks);
     $this->footer->removeAll();
     $this->header->removeAll();
     $this->watermark->removeAll();
     return $tasks;
 }