0

System.ArgumentException 未被用户代码处理 Message=Unexpected color space /R11 Source=itextsharp StackTrace: at iTextSharp.text.pdf.parser.InlineImageUtils.GetComponentsPerPixel(PdfName colorSpaceName) at 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) 在 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) at iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReader reader, Int32 pageNumber, ITextExtractionStrategy strategy) at iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(PdfReader reader , Int32 pageNumber) 在 PDF_PdfToText.extractText(String src, String dest) in d:\QC\Backup\NRK\Current\QConform nrk - 2010\PDF\PdfToText.aspx.cs:第 29 行 PDF_PdfToText.Page_Load(Object sender, 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.Control。OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) InnerException:

4

1 回答 1

0

iText 的内联图像解析器最近进行了一些工作。如果您没有使用 5.0.5,则可能缺少相关的错误修复。

不幸的是,整个 .pdf.parser 包仍在开发中。OTOH,如果您确实有最新的 n-greatest,并且仍然遇到此异常,那么您有一个 iText[sharp] 错误。前往itext-questions 邮件列表,并尽可能将您的堆栈跟踪连同导致它的 PDF 一起发布。我们会处理的。

或者,您可以通过 sourceforge tracker 报告错误。附加文件没有广播到世界,所以你可能会更舒服。

于 2010-11-24T17:46:04.007 回答