You are here

public function LegacyProviderPdfBackend::parse in FillPDF 8.4

Parse a PDF and return a list of its fields.

Parameters

\Drupal\fillpdf\FillPdfFormInterface $fillpdf_form: The PDF whose fields are going to be parsed.

Return value

array An array of associative arrays. Each sub-array contains a 'name' key with the name of the field and a 'type' key with the type. These can be iterated over and saved by the caller.

Overrides FillPdfBackendPluginInterface::parse

1 call to LegacyProviderPdfBackend::parse()
LegacyProviderPdfBackend::parseFile in modules/fillpdf_legacy/src/Plugin/PdfBackend/LegacyProviderPdfBackend.php
Parse a PDF and return a list of its fields.

File

modules/fillpdf_legacy/src/Plugin/PdfBackend/LegacyProviderPdfBackend.php, line 71

Class

LegacyProviderPdfBackend
Legacy provider PdfBackend plugin.

Namespace

Drupal\fillpdf_legacy\Plugin\PdfBackend

Code

public function parse(FillPdfFormInterface $fillpdf_form) {
  return $this->legacyBackend
    ->parse($fillpdf_form);
}