Skip to main content
Interwork Corporation
IDR Solutions Product Support Portal
モードの切替 ダーク/ライト/自動 モードの切替 ダーク/ライト/自動 モードの切替 ダーク/ライト/自動

TIFFを複数ページのTIFFに変換する

JDeliは、個別のTIFF画像を単一の複数ページTIFFファイルに変換することができます。

TIFFから複数ページTIFFファイルへの変換のための読み取り/書き込みメソッド

  1. TIF画像をJavaに読み込む(他のサポートされている画像も処理可能)
 BufferedImage image = JDeli.read(imageFile);

または

 TiffDecoder decoder = new TiffDecoder();
 BufferedImage image = decoder.read(imageData);
  1. 必要に応じて画像を処理 する
  2. Java画像を複数画像TIFFとして書き出す(ファイルが存在する場合は追記、存在しない場合は新規作成されます)
 final TiffEncoderOptions options = new TiffEncoderOptions(); 
     
 //optionsインスタンスに任意のオプションを設定 - 以下は例です 
 options.setCompressionFormat(TiffCompressionFormat.DEFLATE); 
 options.setXmpMetaData("xmp metadata");
     
 TiffEncoder encoder = new TiffEncoder(options);
 encoder.append(image, outputFileName);

これはTiffEncoder クラスを使用します