PdfConverter

Inheritance: java.lang.Object, com.aspose.pdf.facades.IVentureLicenseTarget, com.aspose.pdf.facades.Facade

public final class PdfConverter extends Facade

Represents a class to convert a pdf file’s each page to images, supporting BMP, JPEG, PNG and TIFF now. Supported content in pdfs: pictures, form, comment.

Constructors

Constructor Description
PdfConverter() Initializes new PdfConverter object.
PdfConverter(IDocument document) Initializes new PdfConverter object on base of the document .

Methods

Method Description
bindPdf(IDocument srcDoc) Initializes the facade.
bindPdf(InputStream inputStream) Binds a Pdf Stream for convert.
bindPdf(InputStream srcStream, String password) Initializes the facade.
bindPdf(String inputFile) Binds a Pdf file for converting.
bindPdf(String srcFile, String password) Initializes the facade.
close() Close the instance of PdfConverter and release the resources.
convertPageToPNGMemoryStream(Page page) For internal usage only
dispose() Close the instance of PdfConverter and release the resources.
doConvert() Do some initial works for converting a pdf document to images.
equals(Object arg0)
getClass()
getCoordinateType() Gets the page coordinate type (Media/Crop boxes).
getDocument() Gets the document facade is working on.
getEndPage() Gets end position which you want to convert.
getFormPresentationMode() Gets form presentation mode.
getNextImage(OutputStream outputStream) Saves image to stream with default image format - jpeg.
getNextImage(OutputStream outputStream, ImageType format) Saves image to stream with given image format.
getNextImage(OutputStream outputStream, ImageType format, double imageWidth, double imageHeight, int quality) Saves image to stream with the givin image format, size and quality.
getNextImage(OutputStream outputStream, ImageType format, int quality) Saves image to stream with given image format and quality.
getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight) Saves image to stream with the givin image format, size and quality.
getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight, int quality) Saves image to stream with the givin image format, dimensions and quality.
getNextImage(OutputStream outputStream, PageSize pageSize) Saves image to stream with given page size.
getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format) Saves image to stream with given page size.
getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format, int quality) Saves image to stream with given page size, image format and quality.
getNextImage(String outputFile) Saves image to file with default image format - jpeg.
getNextImage(String outputFile, ImageType format) Saves image to file with the givin image format.
getNextImage(String outputFile, ImageType format, double imageWidth, double imageHeight, int quality) Saves image to file with the givin image format, image size, and quality.
getNextImage(String outputFile, ImageType format, int quality) Saves image to file with given image format and quality.
getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight) Saves image to file with the given image format and dimensions.
getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight, int quality) Saves image to file with the given image format, dimensions and quality.
getNextImage(String outputFile, PageSize pageSize) Saves image to file with ith given page size and default image format - jpeg.
getNextImage(String outputFile, PageSize pageSize, ImageType format) Saves image to file with given page size and image format.
getNextImage(String outputFile, PageSize pageSize, ImageType format, int quality) Saves image to file with given page size, image format and quality.
getPageCount() Gets the page count.
getPassword() Gets document OwnerPassword.
getRenderingOptions() Gets rendering options.
getResolution() Gets resolution during converting.
getStartPage() Gets start position which you want to convert.
getUserPassword() Gets document UserPassword.
hasNextImage() Indicates whether the pdf file has more images or not.
hashCode()
isShowHiddenAreas() Gets flag that controls visibility of hidden areas on the page.
mergeImages(List inputImagesStreams, int outputImageFormat, int mergeMode, Integer horizontal, Integer vertical) Merges list of image streams as one image stream.
mergeImagesAsTiff(List inputImagesStreams) Merges list of tiff streams as one multiple frames tiff stream.
notify()
notifyAll()
saveAsTIFF(OutputStream outputStream) Converts each pages of a pdf document to images and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, PageSize pageSize) Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, PageSize pageSize, TiffSettings settings) Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, TiffSettings settings) Converts each pages of a pdf document to images and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, TiffSettings settings, IIndexBitmapConverter converter) Converts each pages of a pdf document to images and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, int compressionType) Converts each pages of a pdf document to images and saves images to a single TIFF file.
saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, int compressionType) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.
saveAsTIFF(String outputFile) Converts each pages of a pdf document to images and saves images to a single TIFF file.
saveAsTIFF(String outputFile, PageSize pageSize) Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
saveAsTIFF(String outputFile, PageSize pageSize, TiffSettings settings) Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.
saveAsTIFF(String outputFile, TiffSettings settings) Converts each pages of a pdf document to images with and saves images to a single TIFF file.
saveAsTIFF(String outputFile, TiffSettings settings, IIndexBitmapConverter converter) Converts each pages of a pdf document to images with and saves images to a single TIFF file.
saveAsTIFF(String outputFile, int compressionType) Converts each pages of a pdf document to images and saves images to a single TIFF file.
saveAsTIFF(String outputFile, int imageWidth, int imageHeight) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
saveAsTIFF(String outputFile, int imageWidth, int imageHeight, int compressionType) Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.
saveAsTIFFClassF(OutputStream outputStream) Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
saveAsTIFFClassF(OutputStream outputStream, PageSize pageSize) Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
saveAsTIFFClassF(OutputStream outputStream, int imageWidth, int imageHeight) Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.
saveAsTIFFClassF(String outputFile) Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
saveAsTIFFClassF(String outputFile, PageSize pageSize) Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
saveAsTIFFClassF(String outputFile, int imageWidth, int imageHeight) Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.
setCoordinateType(int value) Sets the page coordinate type (Media/Crop boxes).
setEndPage(int value) Sets end position which you want to convert.
setFormPresentationMode(int value) Sets form presentation mode.
setPassword(String value) Sets document OwnerPassword.
setRangeOfPages(int startPage, int EndPage) Sets range of pages between of which you want to convert.
setRenderingOptions(RenderingOptions value) Sets rendering options.
setResolution(Resolution value) Sets resolution during converting.
setShowHiddenAreas(boolean value)
setStartPage(int value) Sets start position which you want to convert.
setUserPassword(String value) Sets document UserPassword.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PdfConverter()

public PdfConverter()

Initializes new PdfConverter object.

PdfConverter(IDocument document)

public PdfConverter(IDocument document)

Initializes new PdfConverter object on base of the document .

Parameters:

Parameter Type Description
document IDocument Pdf document.

bindPdf(IDocument srcDoc)

public void bindPdf(IDocument srcDoc)

Initializes the facade.

Parameters:

Parameter Type Description
srcDoc IDocument The Document object.

bindPdf(InputStream inputStream)

public void bindPdf(InputStream inputStream)

Binds a Pdf Stream for convert.

Parameters:

Parameter Type Description
inputStream java.io.InputStream The pdf Stream.

bindPdf(InputStream srcStream, String password)

public void bindPdf(InputStream srcStream, String password)

Initializes the facade.

Parameters:

Parameter Type Description
srcStream java.io.InputStream The stream of PDF file.
password java.lang.String The password of the PDF document.

bindPdf(String inputFile)

public void bindPdf(String inputFile)

Binds a Pdf file for converting.

Parameters:

Parameter Type Description
inputFile java.lang.String The pdf file.

bindPdf(String srcFile, String password)

public void bindPdf(String srcFile, String password)

Initializes the facade.

Parameters:

Parameter Type Description
srcFile java.lang.String The PDF file
password java.lang.String The password of the PDF document.

close()

public void close()

Close the instance of PdfConverter and release the resources.

convertPageToPNGMemoryStream(Page page)

public System.IO.MemoryStream convertPageToPNGMemoryStream(Page page)

For internal usage only

Parameters:

Parameter Type Description
page Page Internal object

Returns: com.aspose.ms.System.IO.MemoryStream - Internal object

dispose()

public void dispose()

Close the instance of PdfConverter and release the resources.

This method is obsolete, use close() instead.

doConvert()

public void doConvert()

Do some initial works for converting a pdf document to images.


PdfConverter converter = new PdfConverter();
  converter.bindPdf("D:\\Test\\test.pdf");
  converter.doConvert();
  String prefix = "D:\\Test\\";
  String suffix = ".jpg";
  int imageCount = 1;
  while (converter.hasNextImage())
  {
  	converter.getNextImage(prefix + imageCount + suffix);
  	imageCount++;
  }

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCoordinateType()

public int getCoordinateType()

Gets the page coordinate type (Media/Crop boxes). CropBox value is used by default.

Returns: int - PageCoordinateType element

getDocument()

public IDocument getDocument()

Gets the document facade is working on.

Returns: IDocument - IDocument element

getEndPage()

public int getEndPage()

Gets end position which you want to convert.

Returns: int - int value

getFormPresentationMode()

public int getFormPresentationMode()

Gets form presentation mode.

Returns: int - form presentation mode.

getNextImage(OutputStream outputStream)

public void getNextImage(OutputStream outputStream)

Saves image to stream with default image format - jpeg.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.

getNextImage(OutputStream outputStream, ImageType format)

public void getNextImage(OutputStream outputStream, ImageType format)

Saves image to stream with given image format.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
format ImageType The format of the image.

getNextImage(OutputStream outputStream, ImageType format, double imageWidth, double imageHeight, int quality)

public void getNextImage(OutputStream outputStream, ImageType format, double imageWidth, double imageHeight, int quality)

Saves image to stream with the givin image format, size and quality.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
format ImageType The format of the image.
imageWidth double The image width, the unit is pixel.
imageHeight double The image height, the unit is pixel.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(OutputStream outputStream, ImageType format, int quality)

public void getNextImage(OutputStream outputStream, ImageType format, int quality)

Saves image to stream with given image format and quality.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
format ImageType The format of the image.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight)

public void getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight)

Saves image to stream with the givin image format, size and quality.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
format ImageType The format of the image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight, int quality)

public void getNextImage(OutputStream outputStream, ImageType format, int imageWidth, int imageHeight, int quality)

Saves image to stream with the givin image format, dimensions and quality.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
format ImageType The format of the image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(OutputStream outputStream, PageSize pageSize)

public void getNextImage(OutputStream outputStream, PageSize pageSize)

Saves image to stream with given page size.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
pageSize PageSize The page size of the image.

getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format)

public void getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format)

Saves image to stream with given page size.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
pageSize PageSize The page size of the image.
format ImageType The format of the image.

getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format, int quality)

public void getNextImage(OutputStream outputStream, PageSize pageSize, ImageType format, int quality)

Saves image to stream with given page size, image format and quality.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the image.
pageSize PageSize The page size of the image.
format ImageType The format of the image.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(String outputFile)

public void getNextImage(String outputFile)

Saves image to file with default image format - jpeg.

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.

getNextImage(String outputFile, ImageType format)

public void getNextImage(String outputFile, ImageType format)

Saves image to file with the givin image format.


PdfConverter converter = new PdfConverter();
  converter.bindPdf(@"D:\Test\test.pdf");
  converter.DoConvert();
  String prefix = @"D:\Test\";
  String suffix = ".png";
  int imageCount = 1;
  while (converter.HasNextImage())
  {
  	converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Png);
  	imageCount++;
  }

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
format ImageType The format of the image.

getNextImage(String outputFile, ImageType format, double imageWidth, double imageHeight, int quality)

public void getNextImage(String outputFile, ImageType format, double imageWidth, double imageHeight, int quality)

Saves image to file with the givin image format, image size, and quality.


PdfConverter converter = new PdfConverter();
  converter.bindPdf(@"D:\Test\test.pdf");
  converter.doConvert();
  String prefix = @"D:\Test\";
  String suffix = ".jpg";
  int imageCount = 1;
  float pixelX=800f;
  float pixelY=600f;
  while (converter.HasNextImage())
  {
  	converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, pixelX, pixelY, 50);
  	imageCount++;
  }

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
format ImageType The format of the image.
imageWidth double The image width, the unit is pixels.
imageHeight double The image height, the unit is pixels..
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(String outputFile, ImageType format, int quality)

public void getNextImage(String outputFile, ImageType format, int quality)

Saves image to file with given image format and quality.

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
format ImageType The format of the image.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight)

public void getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight)

Saves image to file with the given image format and dimensions.


PdfConverter converter = new PdfConverter();
  converter.bindPdf("D:\\Test\\test.pdf");
  converter.DoConvert();
  String prefix = "D:\\Test\\";
  String suffix = ".jpg";
  int imageCount = 1;
  while (converter.hasNextImage())
  {
  	converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, 800, 1000);
  	imageCount++;
  }

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
format ImageType The format of the image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight, int quality)

public void getNextImage(String outputFile, ImageType format, int imageWidth, int imageHeight, int quality)

Saves image to file with the given image format, dimensions and quality.


PdfConverter converter = new PdfConverter();
  converter.bindPdf(@"D:\Test\test.pdf");
  converter.doConvert();
  String prefix = @"D:\Test\";
  String suffix = ".jpg";
  int imageCount = 1;
  while (converter.HasNextImage())
  {
  	converter.getNextImage(prefix + imageCount + suffix, ImageFormat.Jpeg, 800, 1000, 50);
  	imageCount++;
  }

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
format ImageType The format of the image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getNextImage(String outputFile, PageSize pageSize)

public void getNextImage(String outputFile, PageSize pageSize)

Saves image to file with ith given page size and default image format - jpeg.

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
pageSize PageSize The page size of the image.

getNextImage(String outputFile, PageSize pageSize, ImageType format)

public void getNextImage(String outputFile, PageSize pageSize, ImageType format)

Saves image to file with given page size and image format.

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
pageSize PageSize The page size of the image.
format ImageType The format of the image.

getNextImage(String outputFile, PageSize pageSize, ImageType format, int quality)

public void getNextImage(String outputFile, PageSize pageSize, ImageType format, int quality)

Saves image to file with given page size, image format and quality.

Parameters:

Parameter Type Description
outputFile java.lang.String The file path and name to save the image.
pageSize PageSize The page size of the image.
format ImageType The format of the image.
quality int The Jpeg file’s quality (0~100), 0 is lowest and 100 is highest

getPageCount()

public int getPageCount()

Gets the page count.

Returns: int - int value

getPassword()

public String getPassword()

Gets document OwnerPassword.

Returns: java.lang.String - String value

getRenderingOptions()

public RenderingOptions getRenderingOptions()

Gets rendering options.

Returns: RenderingOptions - rendering options.

getResolution()

public Resolution getResolution()

Gets resolution during converting. The higher resolution, the slower converting speed. The default value is 150.

Returns: Resolution - Resolution element

getStartPage()

public int getStartPage()

Gets start position which you want to convert. The minimal value is 1.

Returns: int - int value

getUserPassword()

public String getUserPassword()

Gets document UserPassword.

Returns: java.lang.String - String value

hasNextImage()

public boolean hasNextImage()

Indicates whether the pdf file has more images or not.

Returns: boolean - Can get more images or not, true if can, or false.

hashCode()

public native int hashCode()

Returns: int

isShowHiddenAreas()

public boolean isShowHiddenAreas()

Gets flag that controls visibility of hidden areas on the page. Method is Deprecated.

Returns: boolean - boolean value

mergeImages(List inputImagesStreams, int outputImageFormat, int mergeMode, Integer horizontal, Integer vertical)

public static InputStream mergeImages(List<InputStream> inputImagesStreams, int outputImageFormat, int mergeMode, Integer horizontal, Integer vertical)

Merges list of image streams as one image stream. Png/jpg/tiff outputs formats are supported, in case of using non supported format output stream encoded as Jpeg by default.

Parameters:

Parameter Type Description
inputImagesStreams java.util.List<java.io.InputStream> The list of image streams to merge.
outputImageFormat int Image output format for merged stream.
mergeMode int Merge mode. Used for Png/Jpg formats.
horizontal java.lang.Integer Horizontal ratio to set canvas width for output image stream. Used for Png/Jpg formats with ImageMergeMode.Center only.
vertical java.lang.Integer Vertical ratio to set canvas height for output image stream. Used for Png/Jpg formats with ImageMergeMode.Center only.

Returns: java.io.InputStream - Image stream encoded as output image format.

mergeImagesAsTiff(List inputImagesStreams)

public static InputStream mergeImagesAsTiff(List<InputStream> inputImagesStreams)

Merges list of tiff streams as one multiple frames tiff stream.

Parameters:

Parameter Type Description
inputImagesStreams java.util.List<java.io.InputStream> The list of tiff streams.

Returns: java.io.InputStream - Multiple frames tiff stream.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

saveAsTIFF(OutputStream outputStream)

public void saveAsTIFF(OutputStream outputStream)

Converts each pages of a pdf document to images and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.

saveAsTIFF(OutputStream outputStream, PageSize pageSize)

public void saveAsTIFF(OutputStream outputStream, PageSize pageSize)

Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
pageSize PageSize The page size of the image.

saveAsTIFF(OutputStream outputStream, PageSize pageSize, TiffSettings settings)

public void saveAsTIFF(OutputStream outputStream, PageSize pageSize, TiffSettings settings)

Converts each pages of a pdf document to images with page size and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
pageSize PageSize The page size of the image.
settings TiffSettings Settings object that defines TIFF parameters.

saveAsTIFF(OutputStream outputStream, TiffSettings settings)

public void saveAsTIFF(OutputStream outputStream, TiffSettings settings)

Converts each pages of a pdf document to images and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
settings TiffSettings Settings object that defines TIFF parameters.

saveAsTIFF(OutputStream outputStream, TiffSettings settings, IIndexBitmapConverter converter)

public void saveAsTIFF(OutputStream outputStream, TiffSettings settings, IIndexBitmapConverter converter)

Converts each pages of a pdf document to images and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
settings TiffSettings Settings object that defines TIFF parameters.
converter IIndexBitmapConverter External converter

saveAsTIFF(OutputStream outputStream, int compressionType)

public void saveAsTIFF(OutputStream outputStream, int compressionType)

Converts each pages of a pdf document to images and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The output stream.
compressionType int Type of the compression.

saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight)

public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings)

public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
settings TiffSettings Settings object that defines TIFF parameters.

saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)

public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
settings TiffSettings Settings object that defines TIFF parameters.
converter IIndexBitmapConverter External converter

saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, int compressionType)

public void saveAsTIFF(OutputStream outputStream, int imageWidth, int imageHeight, int compressionType)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
compressionType int Type of the compression.

saveAsTIFF(String outputFile)

public void saveAsTIFF(String outputFile)

Converts each pages of a pdf document to images and saves images to a single TIFF file.


PdfConverter converter = new PdfConverter();
  converter.bindPdf(@"D:\Test\test.pdf");
  converter.doConvert();
  converter.saveAsTIFF(@"D:\Test\test.tiff");

Parameters:

Parameter Type Description
outputFile java.lang.String The file to save the TIFF image.

saveAsTIFF(String outputFile, PageSize pageSize)

public void saveAsTIFF(String outputFile, PageSize pageSize)

Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
pageSize PageSize The page size of the image.

saveAsTIFF(String outputFile, PageSize pageSize, TiffSettings settings)

public void saveAsTIFF(String outputFile, PageSize pageSize, TiffSettings settings)

Converts each pages of a pdf document to images with page size and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
pageSize PageSize The page size of the image.
settings TiffSettings Settings object that defines TIFF parameters.

saveAsTIFF(String outputFile, TiffSettings settings)

public void saveAsTIFF(String outputFile, TiffSettings settings)

Converts each pages of a pdf document to images with and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
settings TiffSettings Settings.

saveAsTIFF(String outputFile, TiffSettings settings, IIndexBitmapConverter converter)

public void saveAsTIFF(String outputFile, TiffSettings settings, IIndexBitmapConverter converter)

Converts each pages of a pdf document to images with and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
settings TiffSettings Settings.
converter IIndexBitmapConverter External converter

saveAsTIFF(String outputFile, int compressionType)

public void saveAsTIFF(String outputFile, int compressionType)

Converts each pages of a pdf document to images and saves images to a single TIFF file.


PdfConverter converter = new PdfConverter();
 converter.bindPdf(@"D:\Test\test.pdf");
 converter.doConvert();
 converter.saveAsTIFF(@"D:\Test\test.tiff");

Parameters:

Parameter Type Description
outputFile java.lang.String The output file.
compressionType int Type of the compression.

saveAsTIFF(String outputFile, int imageWidth, int imageHeight)

public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings)

public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
settings TiffSettings Settings object that defines TIFF parameters.

saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)

public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, TiffSettings settings, IIndexBitmapConverter converter)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
settings TiffSettings Settings object that defines TIFF parameters.
converter IIndexBitmapConverter External converter

saveAsTIFF(String outputFile, int imageWidth, int imageHeight, int compressionType)

public void saveAsTIFF(String outputFile, int imageWidth, int imageHeight, int compressionType)

Converts each pages of a pdf document to images with dimensions, and saves images to a single TIFF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The file name to save the TIFF image
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.
compressionType int Type of the compression.

saveAsTIFFClassF(OutputStream outputStream)

public void saveAsTIFFClassF(OutputStream outputStream)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.

saveAsTIFFClassF(OutputStream outputStream, PageSize pageSize)

public void saveAsTIFFClassF(OutputStream outputStream, PageSize pageSize)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
pageSize PageSize The page size of the image.

saveAsTIFFClassF(OutputStream outputStream, int imageWidth, int imageHeight)

public void saveAsTIFFClassF(OutputStream outputStream, int imageWidth, int imageHeight)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF stream.

Parameters:

Parameter Type Description
outputStream java.io.OutputStream The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

saveAsTIFFClassF(String outputFile)

public void saveAsTIFFClassF(String outputFile)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.


PdfConverter converter = new PdfConverter();
  converter.bindPdf("D:\\Test\\test.pdf");
  converter.doConvert();
  converter.saveAsTIFFClassF("D:\\Test\\test.tiff");

Parameters:

Parameter Type Description
outputFile java.lang.String The stream to save the TIFF image.

saveAsTIFFClassF(String outputFile, PageSize pageSize)

public void saveAsTIFFClassF(String outputFile, PageSize pageSize)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.

Parameters:

Parameter Type Description
outputFile java.lang.String The stream to save the TIFF image.
pageSize PageSize The page size of the image.

saveAsTIFFClassF(String outputFile, int imageWidth, int imageHeight)

public void saveAsTIFFClassF(String outputFile, int imageWidth, int imageHeight)

Converts each pages of a pdf document to images and save images to a single TIFF ClassF file.


PdfConverter converter = new PdfConverter();
  converter.bindPdf(@"D:\Test\test.pdf");
  converter.doConvert();
  converter.saveAsTIFFClassF(@"D:\Test\test.tiff",204,196);

Parameters:

Parameter Type Description
outputFile java.lang.String The stream to save the TIFF image.
imageWidth int The image width, the unit is pixel.
imageHeight int The image height, the unit is pixel.

setCoordinateType(int value)

public void setCoordinateType(int value)

Sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.

Parameters:

Parameter Type Description
value int PageCoordinateType element

setEndPage(int value)

public void setEndPage(int value)

Sets end position which you want to convert. use setEndPage(int) before setStartPage(int)

Parameters:

Parameter Type Description
value int int value

setFormPresentationMode(int value)

public void setFormPresentationMode(int value)

Sets form presentation mode.

Parameters:

Parameter Type Description
value int form presentation mode.

setPassword(String value)

public void setPassword(String value)

Sets document OwnerPassword.

Parameters:

Parameter Type Description
value java.lang.String String value

setRangeOfPages(int startPage, int EndPage)

public void setRangeOfPages(int startPage, int EndPage)

Sets range of pages between of which you want to convert.

Parameters:

Parameter Type Description
startPage int int value
EndPage int int value

setRenderingOptions(RenderingOptions value)

public void setRenderingOptions(RenderingOptions value)

Sets rendering options.

Parameters:

Parameter Type Description
value RenderingOptions rendering options.

setResolution(Resolution value)

public void setResolution(Resolution value)

Sets resolution during converting. The higher resolution, the slower converting speed. The default value is 150.

Parameters:

Parameter Type Description
value Resolution Resolution element

setShowHiddenAreas(boolean value)

public void setShowHiddenAreas(boolean value)

Parameters:

Parameter Type Description
value boolean

setStartPage(int value)

public void setStartPage(int value)

Sets start position which you want to convert. The minimal value is 1. use setEndPage(int) before setStartPage(int)

Parameters:

Parameter Type Description
value int int value

setUserPassword(String value)

public void setUserPassword(String value)

Sets document UserPassword.

Parameters:

Parameter Type Description
value java.lang.String String value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int