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="true" readFiltered="false" toFile="${expectedFile}">
<pdfToLinksFilter description="extract PDF links"/>
<lineSeparatorFilter description="normalise line separators"/>
</compareToExpected>
</steps>
<invoke url="testDocLinks.pdf"/>
<compareToExpected saveFiltered="true" readFiltered="false" toFile="${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
2|please jump to a local destination|#top