Skip to content

Commit d2c4ac1

Browse files
committed
PDFBOX-5948: register failed type1 font
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923654 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3a9d0a1 commit d2c4ac1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/FileSystemFontProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ else if (name != null)
793793
/**
794794
* Adds a Type 1 font to the file cache. To reduce memory, the parsed font is not cached.
795795
*/
796-
private void addType1Font(File pfbFile)
796+
private void addType1Font(File pfbFile)
797797
{
798798
try (InputStream input = new FileInputStream(pfbFile))
799799
{
@@ -819,6 +819,7 @@ private void addType1Font(File pfbFile)
819819
}
820820
catch (IOException e)
821821
{
822+
fontInfoList.add(createFSIgnored(pfbFile, FontFormat.PFB, "*skipexception*"));
822823
LOG.warn(() -> "Could not load font file: " + pfbFile, e);
823824
}
824825
}

0 commit comments

Comments
 (0)