cz.muni.pdfjbim
Class Jbig2enc

java.lang.Object
  extended by cz.muni.pdfjbim.Jbig2enc

public class Jbig2enc
extends Object

Author:
Radim Hatlapatka (hata.radim@gmail.com)

Constructor Summary
Jbig2enc()
           
Jbig2enc(String jbig2enc)
           
 
Method Summary
 int getBwThresh()
           
 double getDefaultThresh()
           
 String getJbig2enc()
           
 String getLang()
           
 boolean isAutoThresh()
           
 boolean isForcedOcrForUnknownResolution()
           
 boolean isUseOcr()
           
 void run(List<String> imageList, String basename)
          run jbig2enc with symbol coding used and output in format suitable for PDF
 void setAutoThresh(boolean autoThresh)
           
 void setBwThresh(int bwThresh)
           
 void setDefaultThresh(double defaultThresh)
           
 void setForcedOcrForUnknownResolution(boolean forced)
           
 void setJbig2enc(String jbig2enc)
           
 void setLang(String lang)
          sets language of input document used by jbig2enc and its OCR API
 void setUseOcr(boolean useOcr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jbig2enc

public Jbig2enc(String jbig2enc)

Jbig2enc

public Jbig2enc()
Method Detail

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 - base
imageList - 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.