GetCaptures question

Recommend this page to a friend!

      PHP PDF to Text  >  All threads  >  GetCaptures question  >  (Un) Subscribe thread alerts  
Subject:GetCaptures question
Summary:GetCaptures
Messages:1
Author:Marcus Uerlings
Date:2020-11-17 13:38:13
 

 


  1. GetCaptures question   Reply   Report abuse  
Picture of Marcus Uerlings Marcus Uerlings - 2020-11-17 13:38:13
Hi!

Is there a reason why GetCaptures checks if itīs already defined and avoid redefining it?

Iīll would like to pass, for instance, different XML definitions based on PDF content.

I have commented out the "if" line (like below).
public function GetCaptures ( $full = false )
{
// if ( ! $this -> CaptureObject ) // Commented out to allow redefining
{
$this -> CaptureDefinitions -> SetPageCount ( count ( $this -> Pages ) ) ;
$this -> CaptureObject = $this -> CaptureDefinitions -> GetCapturedObject ( $this -> DocumentFragments ) ;
}

if ( $full )
return ( $this -> CaptureObject ) ;
else
return ( $this -> CaptureObject -> ToCaptures ( ) ) ;
}

TIA

 

For more information send a message to info at phpclasses dot org.