"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/util/PDFUtils.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

PDFUtils.java  (OpenKM-document-management-system-6.3.10):PDFUtils.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 341 skipping to change at line 341
String fontEncoding = BaseFont.IDENTITY_H; String fontEncoding = BaseFont.IDENTITY_H;
if (!new File(fontName).exists()) { if (!new File(fontName).exists()) {
log.warn("Unicode TTF font not found: {}", fontName); log.warn("Unicode TTF font not found: {}", fontName);
fontName = BaseFont.HELVETICA; fontName = BaseFont.HELVETICA;
fontEncoding = BaseFont.WINANSI; fontEncoding = BaseFont.WINANSI;
} }
return BaseFont.createFont(fontName, fontEncoding, BaseFont.EMBED DED); return BaseFont.createFont(fontName, fontEncoding, BaseFont.EMBED DED);
} }
/**
* Optimize PDF (reduce size)
*/
public static void optimize(File pdfIn, File pdfOut) {
String params = "-dNOPAUSE -dQUIET -dBATCH -sDEVICE=pdfwrite -dCompatibi
lityLevel=1.7 -dPDFSETTINGS=/prepress -sOutputFile=${fileOut} ${fileIn}";
ImageUtils.ghostscript(pdfIn.getPath(), pdfOut.getPath(), params);
}
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

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