2010-11-24 5 views
0

System.ArgumentExceptionのを持つPDFファイルを解析中には、ユーザーコードによって メッセージ=予期しない色空間/ R11 ソース= itextsharp のStackTrace未処理でした。 iTextSharpでparser.InlineImageUtils.GetComponentsPerPixel iTextSharp.text.pdf.parser.InlineImageUtils.ParseUnfilteredSamples(PdfDictionary imageDictionary、PdfContentParserのPS)でiTextSharp.text.pdf.parser.InlineImageUtils.ComputeBytesPerRow(PdfDictionary imageDictionary) で(PdfName colorSpaceName) 。 text.pdf.parser.InlineImageUtils.ParseInlineImageSamples(PdfDictionary imageDictionary、PdfContentParser ps) at iTextSharp.text.pdf.parsここでは、iTextSharp.text.pdf.PDFContentParser.ProcessContent [E](Int32 pageNumber)で を入力します。 PDF_PdfToTextでiTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPageでiTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReaderリーダ、ページ番号のInt32、ITextExtractionStrategy戦略) において、E renderListener) (PdfReaderリーダ、ページ番号のInt32) .docファイル内の.extractText(文字列src、String dest)d:¥QC¥Backup¥NRK¥Current¥QConform nrk - 2010 \ PDF \ PdfToText.aspx.cs:行29 PDF_PdfToText.Page_Load(オブジェクト送信者、EventArgs e)d :\ QC \ Backup \ NRK \ Current \ QConform nrk - 2010 \ PDF \ PdfToText.aspx.cs:行17 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp、Object o、Object t、EventArgs e) (System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender、EventArgs e) 、System.Web.UI)。 System.Web.UI.Page.ProcessRequestMain(ブールincludeStagesBeforeAsyncPoint、ブールのincludeStagesAfterAsyncPoint)でSystem.Web.UI.Control.LoadRecursiveでControl.OnLoad(EventArgsのe)の () のInnerException:「予期しない色空間/ R11」のテキストおよび画像

+0

Ouch。少しフォーマットしていただけますか? –

答えて

0

iTextののインライン画像パーサが持ちます最近いくつかの仕事を受けた。 5.0.5を使用していない場合は、関連するバグ修正が不足している可能性があります。

残念ながら、.pdf.parserパッケージ全体がまだ開発中です。 OTOH、あなたが最新のn-greatestを持っていて、まだこの例外が発生しているなら、あなたはiText [シャープ]バグを持っています。 itext-questions mailing listに向かい、可能であればスタックトレースとその原因となるPDFと共に投稿してください。私たちはそれを世話します。

また、report the bug via the sourceforge trackerとすることもできます。添付ファイルは、世界に放送されていないので、あなたはそれをより快適にするかもしれません。