/** * Construct driver * * Creates a new document instance maintaining all document context. * * @return void */ public function __construct() { parent::__construct(); $this->document = new DOMDocument('1.0'); $this->document->formatOutput = true; $this->svg = $this->document->createElementNS('http://www.w3.org/2000/svg', 'svg'); $this->svg = $this->document->appendChild($this->svg); $this->svg->setAttribute('version', '1.2'); $this->svg->setAttribute('streamable', 'true'); $this->pages = $this->document->createElement('g'); $this->pages = $this->svg->appendChild($this->pages); $this->pages->setAttribute('id', 'pages'); $metadata = $this->document->createElement('metadata'); $metadata = $this->svg->appendChild($metadata); $rdfNs = 'http://www.w3.org/1999/02/22-rdf-syntax-ns'; $rdf = $this->document->createElementNS($rdfNs, 'rdf:RDF'); $metadata->appendChild($rdf); $this->metadata = $this->document->createElementNS($rdfNs, 'rdf:Description'); $this->metadata = $rdf->appendChild($this->metadata); $this->setMetaData('creator', 'eZ Components - Document //autogen//'); }
/** * Construct driver * * Creates a new document instance maintaining all document context. * * @return void */ public function __construct() { parent::__construct(); // Do nothing in here, we can only instantiate the document on first // page creation, because we do not know about the page format // beforehand. $this->pages = array(); $this->document = null; }
/** * Construct driver * * Creates a new document instance maintaining all document context. * * @return void */ public function __construct() { parent::__construct(); $this->document = null; $this->pages = array(); $this->dummyDoc = null; }