0

System.ArgumentException はユーザー コードによって処理されませんでした Message=Unexpected color space /R11 Source=itextsharp StackTrace: iTextSharp.text.pdf.parser.InlineImageUtils.ComputeBytesPerRow(PdfDictionary imageDictionary) iTextSharp.text.pdf.parser.InlineImageUtils.ParseUnfilteredSamples(PdfDictionary imageDictionary, PdfContentParser ps) iTextSharp.text.pdf.parser.InlineImageUtils.ParseInlineImageSamples(PdfDictionary imageDictionary, PdfContentParser ps) at iTextSharp.text.pdf.parser.InlineImageUtils .ParseInlineImage(PdfContentParser ps) の iTextSharp.text.pdf.parser.PdfContentStreamProcessor.ProcessContent(Byte[] contentBytes、PdfDictionary リソース) の iTextSharp.text.pdf.parser。PdfReaderContentParser.ProcessContent[E](Int32 pageNumber、E renderListener) iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage (PdfReader リーダー、Int32 pageNumber、ITextExtractionStrategy 戦略) で iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReader リーダー) d:\QC\Backup\NRK\Current\QConform nrk - 2010\PDF\PdfToText.aspx.cs:line 29 at PDF_PdfToText.Page_Load(Object sender, EventArgs e) in d:\QC\Backup\NRK\Current\QConform nrk - 2010\PDF\PdfToText.aspx.cs:System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) System.Web.Util.CalliEventHandlerDelegateProxy.Callback (オブジェクト送信者、EventArgs e) で System.Web.UI.Control。System.Web.UI.Page.ProcessRequestMain の System.Web.UI.Control.LoadRecursive() での OnLoad(EventArgs e) (ブール値の includeStagesBeforeAsyncPoint、ブール値の includeStagesAfterAsyncPoint) InnerException:

4

1 に答える 1

0

iTextのインライン画像パーサーは最近いくつかの作業が行われています。5.0.5を使用していない場合は、関連するバグ修正が欠落している可能性があります。

残念ながら、.pdf.parserパッケージ全体はまだ開発中です。OTOH、latest-n-greatestがあり、それでもこの例外が発生する場合は、iText[sharp]のバグがあります。itext-questionsメーリングリストにアクセスし、可能であれば、スタックトレースをPDFと一緒に投稿してください。お世話になります。

または、 sourceforgeトラッカーを介してバグを報告することもできます。添付ファイルはBroadcastToThe Worldにないので、もっと快適かもしれません。

于 2010-11-24T17:46:04.007 に答える