original_string: public function combine_pdfs($pdflist, $outfilename) {
  
          raise_memory_limit(MEMORY_EXTRA);
          $olddebug = error_reporting(0);
  
          $this->setPageUnit('pt');
          $this->setPrintHeader(false);
          $this->setPrintFooter(false);
          $this->scale = 72.0 / 100.0;
          // Use font supporting the widest range of characters.
          $this->SetFont($this->get_export_font_name(), '', 16.0 * $this->scale, '', true);
          $this->SetTextColor(0, 0, 0);
  
          $totalpagecount = 0;
  
          foreach ($pdflist as $file) {
              $pagecount = $this->setSourceFile($file);
              $totalpagecount += $pagecount;
              for ($i = 1; $i<=$pagecount; $i++) {
                  $this->create_page_from_source($i);
              }
          }
  
          $this->save_pdf($outfilename);
          error_reporting($olddebug);
  
          return $totalpagecount;
      }
code: public function combine_pdfs($pdflist, $outfilename) {
  
          raise_memory_limit(MEMORY_EXTRA);
          $olddebug = error_reporting(0);
  
          $this->setPageUnit('pt');
          $this->setPrintHeader(false);
          $this->setPrintFooter(false);
          $this->scale = 72.0 / 100.0;
          // Use font supporting the widest range of characters.
          $this->SetFont($this->get_export_font_name(), '', 16.0 * $this->scale, '', true);
          $this->SetTextColor(0, 0, 0);
  
          $totalpagecount = 0;
  
          foreach ($pdflist as $file) {
              $pagecount = $this->setSourceFile($file);
              $totalpagecount += $pagecount;
              for ($i = 1; $i<=$pagecount; $i++) {
                  $this->create_page_from_source($i);
              }
          }
  
          $this->save_pdf($outfilename);
          error_reporting($olddebug);
  
          return $totalpagecount;
      }
code_tokens: public function combine_pdfs ( $ pdflist , $ outfilename ) { raise_memory_limit ( MEMORY_EXTRA ) ; $ olddebug = error_reporting ( 0 ) ; $ this -> setPageUnit ( 'pt' ) ; $ this -> setPrintHeader ( false ) ; $ this -> setPrintFooter ( false ) ; $ this -> scale = 72.0 / 100.0 ; // Use font supporting the widest range of characters. $ this -> SetFont ( $ this -> get_export_font_name ( ) , '' , 16.0 * $ this -> scale , '' , true ) ; $ this -> SetTextColor ( 0 , 0 , 0 ) ; $ totalpagecount = 0 ; foreach ( $ pdflist as $ file ) { $ pagecount = $ this -> setSourceFile ( $ file ) ; $ totalpagecount += $ pagecount ; for ( $ i = 1 ; $ i <= $ pagecount ; $ i ++ ) { $ this -> create_page_from_source ( $ i ) ; } } $ this -> save_pdf ( $ outfilename ) ; error_reporting ( $ olddebug ) ; return $ totalpagecount ; }
docstring: Combine the given PDF files into a single PDF. Optionally add a coversheet and coversheet fields.
  @param string[] $pdflist  the filenames of the files to combine
  @param string $outfilename the filename to write to
  @return int the number of pages in the combined PDF
docstring_tokens: Combine the given PDF files into a single PDF . Optionally add a coversheet and coversheet fields .