Spire.PDF for Java 12.1.4 のリリースをお知らせします。本バージョンでは、PDF 比較結果をファイルストリームへ直接保存する新機能が追加されました。あわせて、PDF の変換、描画、印刷および安定性に関する複数の問題を修正し、パフォーマンスやレイアウト精度の最適化も行われています。
以下に本リリースの変更内容をまとめます。
| カテゴリー | ID | 説明 |
| 新機能 | SPIREPDF-7880 | PDF 比較結果をファイルストリームに保存する機能を追加しました。
// Create a new PdfDocument object 'pdf1' to work with the first PDF file
PdfDocument pdf1 = new PdfDocument();
// Load the first PDF file from the specified path
pdf1.loadFromFile("ComparePdfDocument_1.pdf");
// Create a new PdfDocument object 'pdf2' to work with the second PDF file
PdfDocument pdf2 = new PdfDocument();
// Load the second PDF file from the specified path
pdf2.loadFromFile("ComparePdfDocument_2.pdf");
// Create a PdfComparer object 'compare' with 'pdf1' and 'pdf2' as parameters for comparison
PdfComparer compare = new PdfComparer(pdf1, pdf2);
// Set the page ranges to be compared using the options of the comparer
compare.getOptions().setPageRanges(0, pdf1.getPages().getCount() - 1, 0, pdf2.getPages().getCount() - 1);
String result = "output.pdf";
File outFile = new File(result);
// Create an output stream to write the document to the output file
OutputStream outputStream = new FileOutputStream(outFile);
// Compare the PDF documents and save
compare.compare(outputStream);
// Dispose of system resources associated with 'pdf1'
pdf1.dispose();
// Dispose of system resources associated with 'pdf2'
pdf2.dispose(); |
| 不具合修正 | SPIREPDF-6373 | PDF を画像へ変換する際のパフォーマンスを最適化しました。 |
| 不具合修正 | SPIREPDF-6406 | OFD から PDF への変換時に発生する OutOfMemoryError を修正しました。 |
| 不具合修正 | SPIREPDF-7189 | PDF を Word に変換した結果を WPS で開いた際の表示品質を改善しました。 |
| 不具合修正 | SPIREPDF-7305 | PDF 印刷時に背景色や一部フォント効果が一致しない問題を修正しました。 |
| 不具合修正 | SPIREPDF-7407 | PDF からフロー型 Word への変換におけるレイアウト精度を向上させました。 |
| 不具合修正 | SPIREPDF-7560 | マルチスレッド環境における PdfTrueTypeFont のエラーを修正しました。 |
| 不具合修正 | SPIREPDF-7666 | 「Yu Mincho」フォント使用時に内容が正しく生成されない問題を修正しました。 |
| 不具合修正 | SPIREPDF-7687 | PDF から PDF/A-1A への変換時に発生するテキストのずれを修正しました。 |
| 不具合修正 | SPIREPDF-7782 | 表抽出結果に余分な空白が含まれる問題を修正しました。 |
| 不具合修正 | SPIREPDF-7820 | PDF を画像に変換する際に数式が欠落する問題を修正しました。 |
| 不具合修正 | SPIREPDF-7869 | PDF から HTML への変換時にテキストが重なる問題を修正しました。 |
| 不具合修正 | SPIREPDF-7887 | PDF 読み込み時に発生する「structure is not valid」エラーを修正しました。 |
| 不具合修正 | SPIREPDF-7890 | テキスト透かし追加後の保存時に発生する ArrayIndexOutOfBoundsException を修正しました。 |
| 不具合修正 | SPIREPDF-7898 | SVG から PDF への変換時に内容が一致しない問題を修正しました。 |
| 不具合修正 | SPIREPDF-7910 | OFD から PDF への変換時に発生する文字列解析エラーを修正しました。 |
| 不具合修正 | SPIREPDF-7911 | OFD から PDF への変換結果が正しくない問題を修正しました。 |
以下のリンクから Spire.PDF for Java 12.1.4 をダウンロードできます:






