public function PdfParseTest::testParsePdftk in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 tests/src/Functional/PdfParseTest.php \Drupal\Tests\fillpdf\Functional\PdfParseTest::testParsePdftk()
Tests PDF population using a local install of pdftk.
Throws
\Behat\Mink\Exception\ResponseTextException
\Drupal\Component\Plugin\Exception\PluginException
\Drupal\Core\Entity\EntityStorageException
File
- tests/
src/ Functional/ PdfParseTest.php, line 43
Class
- PdfParseTest
- Tests PDF parsing.
Namespace
Drupal\Tests\fillpdf\FunctionalCode
public function testParsePdftk() {
$this
->configureFillPdf([
'backend' => 'pdftk',
]);
if (!FillPdf::checkPdftkPath()) {
$this
->markTestSkipped('pdftk not available, so skipping test.');
}
$this
->backendTest($this
->config('fillpdf.settings'));
}