[aspose-pdf]PDFから文字列抽出する時に、エラーが発生する

PDFから文字列抽出を行っていますが、エラーが発生します。

具体的には、ParagraphAbsorberクラスのvisitの実行により、key already present in dictionary Parameter name: keyが発生しています。

aspose-pdfのバージョンは、21.4になります。

エラーログは、以下になります。

com.aspose.pdf.internal.ms.System.lh: key already present in dictionary Parameter name: key
at com.aspose.pdf.internal.ms.System.Collections.Generic.l0k.lf(Unknown Source)
at com.aspose.pdf.internal.ms.System.Collections.Generic.l0k.addItem(Unknown Source)
at com.aspose.pdf.internal.l5if.lI.ld(Unknown Source)
at com.aspose.pdf.internal.l5if.l0t.lh(Unknown Source)
at com.aspose.pdf.internal.l5if.l0t.(Unknown Source)
at com.aspose.pdf.TextFragmentAbsorber.visit(Unknown Source)
at com.aspose.pdf.Page.accept(Unknown Source)
at com.aspose.pdf.PageMarkup.lI(Unknown Source)
at com.aspose.pdf.ParagraphAbsorber.visit(Unknown Source)

原因を教えていただけないでしょうか?

@KazukiEndou

Aspose.PDF for Java 22.2の最新バージョンを試してみて、それがどのように機能するかをお知らせください。 これがお役に立てば幸いです。

それでも問題が発生する場合は、同じ問題を再現するために使用している入力PDFとコード例を添付してください。 問題を調査し、詳細情報を提供します。

試したところ、正常に処理されるようになりました。

このエラーメッセージは、どのような場合に出力されるのでしょうか?
key already present in dictionary Parameter name: key

他のPDFファイルでも、同様のエラーが発生してしまうことを危惧しています。

@KazukiEndou

同じ問題を再現するために使用している入力PDFとコード例を添付してください。 問題を調査し、より多くの情報を提供してください。