Logo Search packages:      
Sourcecode: acidbase version File versions  Download package

Cpdf::newDocument ( pageSize = array(0,0,612,792) )

intialize a new document if this is called on an existing document results may be unpredictable, but the existing document would be lost at minimum this function is called automatically by the constructor function

private

Definition at line 1267 of file class.pdf.php.

References o_catalog(), o_info(), o_outlines(), o_page(), o_pages(), and o_procset().

                                                  {
  $this->numObj=0;
  $this->objects = array();

  $this->numObj++;
  $this->o_catalog($this->numObj,'new');

  $this->numObj++;
  $this->o_outlines($this->numObj,'new');

  $this->numObj++;
  $this->o_pages($this->numObj,'new');

  $this->o_pages($this->numObj,'mediaBox',$pageSize);
  $this->currentNode = 3;

  $this->numObj++;
  $this->o_procset($this->numObj,'new');

  $this->numObj++;
  $this->o_info($this->numObj,'new');

  $this->numObj++;
  $this->o_page($this->numObj,'new');

  // need to store the first page id as there is no way to get it to the user during 
  // startup
  $this->firstPageId = $this->currentContents;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index