Skip to content

Commit d1719a5

Browse files
committed
PDFBOX-5660: fix test, as discovered by Valery Bokov; closes #261
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1928662 13f79535-47bb-0310-9956-ffa450edef68
1 parent a7273fd commit d1719a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroFormFromAnnotsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void testFromAnnots3891ValidateFont() throws IOException, URISyntaxException
251251
String sourceUrl = "https://issues.apache.org/jira/secure/attachment/12881055/merge-test.pdf";
252252
String acrobatSourceUrl = "https://issues.apache.org/jira/secure/attachment/13014447/merge-test-na-acrobat.pdf";
253253

254-
// will build the expected font respurce names and font decriptor names using the acrobat source document
254+
// will build the expected font resource names and font decriptor names using the acrobat source document
255255
Map<String, String> fontNames = new HashMap<>();
256256

257257
try (PDDocument testPdf = Loader.loadPDF(RandomAccessReadBuffer
@@ -266,8 +266,8 @@ void testFromAnnots3891ValidateFont() throws IOException, URISyntaxException
266266
try
267267
{
268268
PDFont font = acroFormResources.getFont(fontName);
269-
font.getFontDescriptor().getFontName();
270-
fontNames.put(fontName.getName(), font.getName());
269+
String pdfBoxFontName = font.getFontDescriptor().getFontName();
270+
fontNames.put(fontName.getName(), pdfBoxFontName);
271271
}
272272
catch (IOException ioe)
273273
{

0 commit comments

Comments
 (0)