You are here

public function PdftkPdfBackend::parse in FillPDF 8.4

Overrides FillPdfBackendPluginInterface::parse

Deprecated

in fillpdf:8.x-4.9 and is removed from fillpdf:8.x-5.0. Instead use PdfBackendInterface::parseFile().

See also

https://www.drupal.org/node/3059476

\Drupal\fillpdf\Plugin\PdfBackendInterface::parseFile()

File

src/Plugin/PdfBackend/PdftkPdfBackend.php, line 104

Class

PdftkPdfBackend
Pdftk PdfBackend plugin.

Namespace

Drupal\fillpdf\Plugin\PdfBackend

Code

public function parse(FillPdfFormInterface $fillpdf_form) {
  $template_file = File::load($fillpdf_form->file->target_id);
  return $this
    ->parseFile($template_file);
}