public function Test::parse in FillPDF 8.4
Parse a PDF and return a list of its fields.
Parameters
string $pdf_content: The PDF whose fields are going to be parsed. This should be the contents of a PDF loaded with something like file_get_contents() or equivalent.
Return value
array[] An array of arrays containing metadata about the fields in the PDF. These can be iterated over and saved by the caller.
Overrides BackendServiceInterface::parse
File
- tests/
modules/ fillpdf_test/ src/ Plugin/ BackendService/ Test.php, line 61
Class
- Test
- Backend used in tests.
Namespace
Drupal\fillpdf_test\Plugin\BackendServiceCode
public function parse($pdf_content) {
return static::getParseResult();
}