EasyPDF Java SDK
v5.1

com.bcl.easypdf.EasyPDFConverter
Class IPDF2Image

java.lang.Object
  extended by com.bcl.easypdf.EasyPDFConverter.IPDF2Image

public class IPDF2Image
extends java.lang.Object

Use an object of this class to convert a PDF file into an image file.


Method Summary
 void Convert(java.lang.String InputFileName, java.lang.String OutputFileName, java.lang.Object Password, java.lang.Object From, java.lang.Object To)
          Converts a password protected PDF to an image.
 boolean getAddPageNumberForSingleFileOutput()
          Returns a boolean value indicating whether to add page number to a file name even for single file output.
 int getFileConversionTimeout()
          Returns file conversion timeout (in milliseconds).
 int getImageColor()
           
 int getImageFormat()
           
 int getImageQuality()
          Returns image quality (in percent).
 int getImageResolution()
          Returns image resolution (in DPI).
 int getMinimumPageNumberDigits()
          Returns minimum page number digits to insert to the file name.
 int getPageConversionTimeout()
          Returns page conversion timeout (in milliseconds).
 java.lang.String getPageNumberSeparator()
           
 int getTiffCompression()
           
 boolean getTiffMultiPage()
          Returns true if multipage TIFF is created; false otherwise.
 int getTiffResolutionX()
          Returns TIFF X image resolution (in DPI).
 int getTiffResolutionY()
          Returns TIFF Y image resolution (in DPI).
 void setAddPageNumberForSingleFileOutput(boolean newVal)
          To add page number to a file name, call this method with true.
 void setFileConversionTimeout(int newVal)
          Sets file conversion timeout (in milliseconds).
 void setImageColor(int EcnvImageColor)
           
 void setImageFormat(int EcnvImageFormat)
          Sets image format.
 void setImageQuality(int newVal)
           
 void setImageResolution(int newVal)
           
 void setMinimumPageNumberDigits(int newVal)
          Sets minimum page number digits to insert to the file name.
 void setPageConversionTimeout(int newVal)
          Sets page conversion timeout (in milliseconds).
 void setPageNumberSeparator(java.lang.String newVal)
           
 void setTiffCompression(int EcnvTiffCompression)
           
 void setTiffMultiPage(boolean newVal)
          To create multipage TIFF, call this method with true.
 void setTiffResolutionX(int newVal)
           
 void setTiffResolutionY(int newVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

Convert

public void Convert(java.lang.String InputFileName,
                    java.lang.String OutputFileName,
                    java.lang.Object Password,
                    java.lang.Object From,
                    java.lang.Object To)
             throws EasyPDFException
Converts a password protected PDF to an image.

Throws:
EasyPDFException

getPageConversionTimeout

public int getPageConversionTimeout()
                             throws EasyPDFException
Returns page conversion timeout (in milliseconds).

Throws:
EasyPDFException

setPageConversionTimeout

public void setPageConversionTimeout(int newVal)
                              throws EasyPDFException
Sets page conversion timeout (in milliseconds).

Throws:
EasyPDFException

getFileConversionTimeout

public int getFileConversionTimeout()
                             throws EasyPDFException
Returns file conversion timeout (in milliseconds).

Throws:
EasyPDFException

setFileConversionTimeout

public void setFileConversionTimeout(int newVal)
                              throws EasyPDFException
Sets file conversion timeout (in milliseconds).

Throws:
EasyPDFException

getImageFormat

public int getImageFormat()
                   throws EasyPDFException
Returns:
one of the values defined in cnvImageFormat
Throws:
EasyPDFException
See Also:
cnvImageFormat

setImageFormat

public void setImageFormat(int EcnvImageFormat)
                    throws EasyPDFException
Sets image format.

Parameters:
EcnvImageFormat - a value defined in cnvImageFormat
Throws:
EasyPDFException
See Also:
cnvImageFormat

getImageQuality

public int getImageQuality()
                    throws EasyPDFException
Returns image quality (in percent).

Throws:
EasyPDFException

setImageQuality

public void setImageQuality(int newVal)
                     throws EasyPDFException
Parameters:
newVal - a value inside the range [5, 100]
Throws:
EasyPDFException

getImageResolution

public int getImageResolution()
                       throws EasyPDFException
Returns image resolution (in DPI).

Throws:
EasyPDFException

setImageResolution

public void setImageResolution(int newVal)
                        throws EasyPDFException
Parameters:
newVal - a value inside the range [8, 600]
Throws:
EasyPDFException

getImageColor

public int getImageColor()
                  throws EasyPDFException
Returns:
a color defined in cnvImageColor
Throws:
EasyPDFException
See Also:
cnvImageColor

setImageColor

public void setImageColor(int EcnvImageColor)
                   throws EasyPDFException
Parameters:
EcnvImageColor - a value defined in cnvImageColor
Throws:
EasyPDFException
See Also:
cnvImageColor

getMinimumPageNumberDigits

public int getMinimumPageNumberDigits()
                               throws EasyPDFException
Returns minimum page number digits to insert to the file name.

Throws:
EasyPDFException

setMinimumPageNumberDigits

public void setMinimumPageNumberDigits(int newVal)
                                throws EasyPDFException
Sets minimum page number digits to insert to the file name.

Throws:
EasyPDFException

getAddPageNumberForSingleFileOutput

public boolean getAddPageNumberForSingleFileOutput()
                                            throws EasyPDFException
Returns a boolean value indicating whether to add page number to a file name even for single file output.

Throws:
EasyPDFException

setAddPageNumberForSingleFileOutput

public void setAddPageNumberForSingleFileOutput(boolean newVal)
                                         throws EasyPDFException
To add page number to a file name, call this method with true.

Throws:
EasyPDFException

getPageNumberSeparator

public java.lang.String getPageNumberSeparator()
                                        throws EasyPDFException
Throws:
EasyPDFException

setPageNumberSeparator

public void setPageNumberSeparator(java.lang.String newVal)
                            throws EasyPDFException
Throws:
EasyPDFException

getTiffMultiPage

public boolean getTiffMultiPage()
                         throws EasyPDFException
Returns true if multipage TIFF is created; false otherwise.

Throws:
EasyPDFException

setTiffMultiPage

public void setTiffMultiPage(boolean newVal)
                      throws EasyPDFException
To create multipage TIFF, call this method with true.

Throws:
EasyPDFException

getTiffCompression

public int getTiffCompression()
                       throws EasyPDFException
Returns:
one of the values defined in cnvTiffCompression
Throws:
EasyPDFException
See Also:
cnvTiffCompression

setTiffCompression

public void setTiffCompression(int EcnvTiffCompression)
                        throws EasyPDFException
Parameters:
EcnvTiffCompression - a value defined in cnvTiffCompression
Throws:
EasyPDFException
See Also:
cnvTiffCompression

getTiffResolutionX

public int getTiffResolutionX()
                       throws EasyPDFException
Returns TIFF X image resolution (in DPI).

Throws:
EasyPDFException

setTiffResolutionX

public void setTiffResolutionX(int newVal)
                        throws EasyPDFException
Parameters:
newVal - TIFF X image resoution in the range [0, 600]
Throws:
EasyPDFException

getTiffResolutionY

public int getTiffResolutionY()
                       throws EasyPDFException
Returns TIFF Y image resolution (in DPI).

Throws:
EasyPDFException

setTiffResolutionY

public void setTiffResolutionY(int newVal)
                        throws EasyPDFException
Parameters:
newVal - TIFF Y image resoution in the range [0, 600]
Throws:
EasyPDFException

EasyPDF Java SDK
v5.1

Copyright 2007 BCL Technologies. All rights reserved.