pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867924 - /pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java
Date Thu, 03 Oct 2019 10:00:22 GMT
Author: tilman
Date: Thu Oct  3 10:00:22 2019
New Revision: 1867924

URL: http://svn.apache.org/viewvc?rev=1867924&view=rev
Log:
PDFBOX-4071: remove segment that is never reached (all PDSimpleFont classes are PDVectorFont
except PDType3Font)

Modified:
    pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java

Modified: pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java?rev=1867924&r1=1867923&r2=1867924&view=diff
==============================================================================
--- pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java
(original)
+++ pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/util/DrawPrintTextLocations.java
Thu Oct  3 10:00:22 2019
@@ -37,7 +37,6 @@ import org.apache.pdfbox.pdmodel.PDPage;
 import org.apache.pdfbox.pdmodel.common.PDRectangle;
 import org.apache.pdfbox.pdmodel.font.PDCIDFontType2;
 import org.apache.pdfbox.pdmodel.font.PDFont;
-import org.apache.pdfbox.pdmodel.font.PDSimpleFont;
 import org.apache.pdfbox.pdmodel.font.PDTrueTypeFont;
 import org.apache.pdfbox.pdmodel.font.PDType0Font;
 import org.apache.pdfbox.pdmodel.font.PDType3CharProc;
@@ -190,15 +189,6 @@ public class DrawPrintTextLocations exte
                 }
             }
         }
-        else if (font instanceof PDSimpleFont)
-        {
-            PDSimpleFont simpleFont = (PDSimpleFont) font;
-
-            // these two lines do not always work, e.g. for the TT fonts in file 032431.pdf
-            // which is why PDVectorFont is tried first.
-            String name = simpleFont.getEncoding().getName(code);
-            path = simpleFont.getPath(name);
-        }
         else
         {
             // shouldn't happen, please open issue in JIRA



Mime
View raw message