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

画像をPDFファイルに変換する

JavaのBufferedImageをPDFファイルに変換する

JDeliを使用すると、JavaのBufferedImageをPDFファイルに非常に簡単に変換できます。これはJDeliクラスを使用します。

File myNewPdfFile = new File("file.pdf");
JDeli.write(myBufferedImage, "pdf", myNewPdfFile);

Javaで既存の画像ファイルをPDFファイルに変換する

JDeliは入力画像ファイルの形式を自動的に判別します。

JDeli.convert(File inFile, File outFile);

JDeli.convert(InputStream inFile, OutputStream outfile, String format);

byte[] outputData = JDeli.convert(byte[] inputData, String format);