com.cete.dynamicpdf.imaging
Class TiffFile



Example : This example shows how to create a PDF out of a Tiff image.
  import com.cete.dynamicpdf.*;
  import com.cete.dynamicpdf.imaging.*;
  import java.io.*;

  public class TiffFile1 {
    public static void main(String args[]) {
    
        // Create a TiffFile object from the TIFF image
            TiffFile tiffFile=null;
    
        try{
             tiffFile = new TiffFile( "[physicalpath]/MyMultipageTiff.tif" );
            }catch(FileNotFoundException fe)
            {
              System.err.println(fe);
            }       
       
        // Create a document object from the file
        Document document = tiffFile.getDocument();
        
        // Save the PDF document
        document.draw( "[physicalpath]/MyDocument.pdf" );
    }
  }