Webtest WebTest GitHub Home

PDF Step pdfToLinksFilter

Description

Extracts all links from within the current PDF document.

Parameters

description
Required? no
The description of this test step.

Details

Here is an example of using pdfToLinksFilter:

pdfToLinksFilter example
<steps>
    <invoke url="testDocLinks.pdf"/>
    <compareToExpected saveFiltered="truereadFiltered="falsetoFile="${expectedFile}">
        <pdfToLinksFilter description="extract PDF links"/>
        <lineSeparatorFilter description="normalise line separators"/>
    </compareToExpected>
</steps>

As a result of invoking the above steps a file would be created containing something like the following:

pdfToLinksFilter output
1|website (external reference)|http://www.asert.com.au/
2|please jump to a local destination|#top