PDF Step pdfToFontsFilter
Description
Extracts all font information from within the current PDF document.
Parameters
- description
- Required? no
- The description of this test step.
Details
Here is an example of using pdfToFontsFilter:
pdfToFontsFilter example
<steps>
<invoke url="testDocFonts.pdf"/>
<compareToExpected saveFiltered="true" readFiltered="false" toFile="${expectedFile}">
<pdfToFontsFilter description="extract PDF font information"/>
<lineSeparatorFilter description="normalise line separators"/>
</compareToExpected>
</steps>
<invoke url="testDocFonts.pdf"/>
<compareToExpected saveFiltered="true" readFiltered="false" toFile="${expectedFile}">
<pdfToFontsFilter description="extract PDF font information"/>
<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:
pdfToFontsFilter output
1|Type1|Symbol
1|Type1|Times-Roman
1|Type1|ZapfDingbats
2|TrueType|ComicSansMS-Bold
1|Type1|Times-Roman
1|Type1|ZapfDingbats
2|TrueType|ComicSansMS-Bold
The first column is the page number, the second column is the font type and the third column is the font name.