"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDFont.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

PDFont.java  (pdfbox-2.0.23-src):PDFont.java  (pdfbox-2.0.24-src)
skipping to change at line 161 skipping to change at line 161
String cmapName = cmap.getName() != null ? cmap.getName() : ""; String cmapName = cmap.getName() != null ? cmap.getName() : "";
String ordering = cmap.getOrdering() != null ? cmap.getOrdering( ) : ""; String ordering = cmap.getOrdering() != null ? cmap.getOrdering( ) : "";
COSBase encoding = dict.getDictionaryObject(COSName.ENCODING); COSBase encoding = dict.getDictionaryObject(COSName.ENCODING);
if (cmapName.contains("Identity") // if (cmapName.contains("Identity") //
|| ordering.contains("Identity") // || ordering.contains("Identity") //
|| COSName.IDENTITY_H.equals(encoding) // || COSName.IDENTITY_H.equals(encoding) //
|| COSName.IDENTITY_V.equals(encoding)) || COSName.IDENTITY_V.equals(encoding))
{ {
// assume that if encoding is identity, then the reverse is also true // assume that if encoding is identity, then the reverse is also true
cmap = CMapManager.getPredefinedCMap(COSName.IDENTITY_H.getN ame()); cmap = CMapManager.getPredefinedCMap(COSName.IDENTITY_H.getN ame());
LOG.warn("Using predefined identity CMap instead");
} }
} }
} }
catch (IOException ex) catch (IOException ex)
{ {
LOG.error("Could not read ToUnicode CMap in font " + getName(), ex); LOG.error("Could not read ToUnicode CMap in font " + getName(), ex);
} }
return cmap; return cmap;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)