net.sourceforge.vietocr
Class PdfUtilities

java.lang.Object
  extended by net.sourceforge.vietocr.PdfUtilities

public class PdfUtilities
extends java.lang.Object


Field Summary
static java.lang.String GS_INSTALL
           
 
Constructor Summary
PdfUtilities()
           
 
Method Summary
static java.io.File[] convertPdf2Png(java.io.File inputPdfFile)
          Convert PDF to PNG format.
static java.io.File convertPdf2Tiff(java.io.File inputPdfFile)
          Convert PDF to TIFF format.
static int getPdfPageCount(java.lang.String inputPdfFile)
          Get PDF Page Count.
static void mergePdf(java.io.File[] inputPdfFiles, java.io.File outputPdfFile)
          Merge PDF files.
static void splitPdf(java.lang.String inputPdfFile, java.lang.String outputPdfFile, java.lang.String firstPage, java.lang.String lastPage)
          Split PDF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GS_INSTALL

public static final java.lang.String GS_INSTALL
See Also:
Constant Field Values
Constructor Detail

PdfUtilities

public PdfUtilities()
Method Detail

convertPdf2Tiff

public static java.io.File convertPdf2Tiff(java.io.File inputPdfFile)
                                    throws java.io.IOException
Convert PDF to TIFF format.

Parameters:
inputPdfFile -
Returns:
a multi-page TIFF image
Throws:
java.io.IOException

convertPdf2Png

public static java.io.File[] convertPdf2Png(java.io.File inputPdfFile)
Convert PDF to PNG format.

Parameters:
inputPdfFile -
Returns:
an array of PNG images

splitPdf

public static void splitPdf(java.lang.String inputPdfFile,
                            java.lang.String outputPdfFile,
                            java.lang.String firstPage,
                            java.lang.String lastPage)
Split PDF.

Parameters:
inputPdfFile -
outputPdfFile -
firstPage -
lastPage -

getPdfPageCount

public static int getPdfPageCount(java.lang.String inputPdfFile)
Get PDF Page Count.

Parameters:
inputPdfFile -
Returns:
number of pages

mergePdf

public static void mergePdf(java.io.File[] inputPdfFiles,
                            java.io.File outputPdfFile)
Merge PDF files.

Parameters:
inputPdfFiles -
outputPdfFile -