
 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