cz.muni.pdfjbim
Class Jbig2enc
java.lang.Object
cz.muni.pdfjbim.Jbig2enc
public class Jbig2enc
- extends Object
- Author:
- Radim Hatlapatka (hata.radim@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jbig2enc
public Jbig2enc(String jbig2enc)
Jbig2enc
public Jbig2enc()
isForcedOcrForUnknownResolution
public boolean isForcedOcrForUnknownResolution()
setForcedOcrForUnknownResolution
public void setForcedOcrForUnknownResolution(boolean forced)
getLang
public String getLang()
setLang
public void setLang(String lang)
- sets language of input document used by jbig2enc and its OCR API
- Parameters:
lang -
isAutoThresh
public boolean isAutoThresh()
setAutoThresh
public void setAutoThresh(boolean autoThresh)
getBwThresh
public int getBwThresh()
setBwThresh
public void setBwThresh(int bwThresh)
getDefaultThresh
public double getDefaultThresh()
setDefaultThresh
public void setDefaultThresh(double defaultThresh)
- Parameters:
defaultThresh - sets default thresholding used while running jbig2enc
getJbig2enc
public String getJbig2enc()
setJbig2enc
public void setJbig2enc(String jbig2enc)
isUseOcr
public boolean isUseOcr()
setUseOcr
public void setUseOcr(boolean useOcr)
run
public void run(List<String> imageList,
String basename)
throws PdfRecompressionException
- run jbig2enc with symbol coding used and output in format suitable for PDF
- Parameters:
basename - baseimageList - list of images to be compressed
- Throws:
PdfRecompressionException - if any problem occurs while running jbig2enc
Copyright © 2012 Faculty of Informatics, Masaryk University, Brno. All Rights Reserved.