public function PdfBackendInterface::parseStream in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x src/Plugin/PdfBackendInterface.php \Drupal\fillpdf\Plugin\PdfBackendInterface::parseStream()
Parse a PDF and return a list of its fields.
@todo Replace output array by a value object.
Parameters
string $pdf_content: The PDF template whose fields are to be parsed. This should be the contents of a PDF loaded with something like file_get_contents() or equivalent.
Return value
string[][] 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.
See also
\Drupal\fillpdf\Plugin\PdfBackendInterface::parseFile()
4 methods override PdfBackendInterface::parseStream()
- FillPdfServicePdfBackend::parseStream in src/
Plugin/ PdfBackend/ FillPdfServicePdfBackend.php - Parse a PDF and return a list of its fields.
- LegacyProviderPdfBackend::parseStream in modules/
fillpdf_legacy/ src/ Plugin/ PdfBackend/ LegacyProviderPdfBackend.php - Parse a PDF and return a list of its fields.
- LocalServerPdfBackend::parseStream in src/
Plugin/ PdfBackend/ LocalServerPdfBackend.php - Parse a PDF and return a list of its fields.
- PdftkPdfBackend::parseStream in src/
Plugin/ PdfBackend/ PdftkPdfBackend.php - Parse a PDF and return a list of its fields.
File
- src/
Plugin/ PdfBackendInterface.php, line 46
Class
- PdfBackendInterface
- Defines an interface for FillPDF PdfBackend plugins.
Namespace
Drupal\fillpdf\PluginCode
public function parseStream($pdf_content);