original_string: protected function store_empty_document($contextid, $itemid) {
          // Store the file.
          $record = $this->get_stored_file_record($contextid, $itemid);
          $fs = get_file_storage();
  
          // Delete existing files first.
          $fs->delete_area_files($record->contextid, $record->component, $record->filearea, $record->itemid);
  
          $file = $fs->create_file_from_string($record, base64_decode(document_services::BLANK_PDF_BASE64));
          $this->pagecount = 1;
  
          $this->set_combined_file($file);
  
          return $this;
      }
code: protected function store_empty_document($contextid, $itemid) {
          // Store the file.
          $record = $this->get_stored_file_record($contextid, $itemid);
          $fs = get_file_storage();
  
          // Delete existing files first.
          $fs->delete_area_files($record->contextid, $record->component, $record->filearea, $record->itemid);
  
          $file = $fs->create_file_from_string($record, base64_decode(document_services::BLANK_PDF_BASE64));
          $this->pagecount = 1;
  
          $this->set_combined_file($file);
  
          return $this;
      }
code_tokens: protected function store_empty_document ( $ contextid , $ itemid ) { // Store the file. $ record = $ this -> get_stored_file_record ( $ contextid , $ itemid ) ; $ fs = get_file_storage ( ) ; // Delete existing files first. $ fs -> delete_area_files ( $ record -> contextid , $ record -> component , $ record -> filearea , $ record -> itemid ) ; $ file = $ fs -> create_file_from_string ( $ record , base64_decode ( document_services :: BLANK_PDF_BASE64 ) ) ; $ this -> pagecount = 1 ; $ this -> set_combined_file ( $ file ) ; return $ this ; }
docstring: Store the empty document file in the file_storage API.
  
  @param   int $contextid The contextid for the file to be stored under
  @param   int $itemid The itemid for the file to be stored under
  @return  $this
docstring_tokens: Store the empty document file in the file_storage API .