尊という文字列が含まれるPDFに対するaddImageに失敗する。

Aspose.Pdf for Java 19.5で、「尊」という文字列が存在するPDFのページに対して
AddImage()を使用して画像を差し込むと、例外エラーが発生します。

具体的なソースコードとエラーは以下の通りです。

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
doc = new Document(System.getProperty(“user.dir”) . “\BASE.pdf”);
page = doc.getPages().get_Item(1);

        String FilePath = System.getProperty("user.dir") . "\QRImage.png";
        java.io.InputStream stream3 = new java.io.FileInputStream(FilePath);

        // AddQrCode
        page.addImage(stream3 ,new com.aspose.pdf.Rectangle(0,0,0,0)); // ← Error

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
class com.aspose.pdf.internal.l9j.lu
Attempted to read past the end of the stream.
com.aspose.pdf.internal.l5n.l0n$lI.deserialize(Unknown Source)
com.aspose.pdf.internal.l9j.le.deserialize(Unknown Source)
com.aspose.pdf.internal.l5n.l1n.lI(Unknown Source)
com.aspose.pdf.internal.l9h.lk.lI(Unknown Source)
com.aspose.pdf.internal.l9h.ld.lI(Unknown Source)
com.aspose.pdf.internal.l2y.lu.lI(Unknown Source)
com.aspose.pdf.internal.l2y.lu.lI(Unknown Source)
com.aspose.pdf.OperatorCollection.lb(Unknown Source)
com.aspose.pdf.OperatorCollection.ld(Unknown Source)
com.aspose.pdf.OperatorCollection.size(Unknown Source)
com.aspose.pdf.Page.lI(Unknown Source)
com.aspose.pdf.Page.lI(Unknown Source)
com.aspose.pdf.Page.lI(Unknown Source)
com.aspose.pdf.Page.lI(Unknown Source)
com.aspose.pdf.Page.lI(Unknown Source)
com.aspose.pdf.Page.addImage(Unknown Source)

※実際に使用したPDFとpng画像です。
Image.zip (5.0 KB)

上記のPDFですが複数の文字列が入力されているため、
問題がある「尊」の文字列だけ切り出したものも作成しました。

BASE.pdf (7.6 KB)BASE2.pdf (7.5 KB)

@koga

Aspose.PDF for Javaの21.4バージョンでケースをテストしているときに、環境で同様の問題に気付くことができました。そのため、問題追跡システムにPDFJAVA-40468として問題を記録しました。その詳細をさらに調査し、修正のステータスをお知らせします。しばらくお待ちください。

ご不便をおかけして申し訳ございません。

Please escalate to a paid support request.

@koga

下記のリンクから有料サポートフォーラムに投稿してください。投稿でチケットIDを共有すると、それに応じて問題がエスカレーションされます。