在itextsharp中出现意外的色彩空间/ CS5 [英] Unexpected color space /CS5 in itextsharp
问题描述
使用itextsharp从PDF文件中提取文本时出现错误意外颜色空间/ CS5
我已经放置了我的代码和示例文件。请帮忙。
Dim simg,tmp,sImgPDFLst As String
simg = AOTD_test_006.pdf
Dim reader As iTextSharp.text.pdf.PdfReader = Nothing
tmp = pdf.parser.PdfTextExtractor.GetTextFromPage(reader,1,New pdf.parser.SimpleTextExtractionStrategy())
如果tmp.Length = 0那么
sImgPDFLst =以下文件是图像PDF
结束如果
reader.Dispose()
reader.Close()
reader = Nothing
链接:https://drive.google.com/ file / d / 0B_nzYHWVJJ7KYjI2OXl2MlFlVzA / edit?usp = sharing
While extracting text from PDF file using itextsharp iam getting an error "Unexpected color space /CS5 "
I have placed my code and sample file. Kindly do the needful.
Dim simg,tmp,sImgPDFLst As String
simg = AOTD_test_006.pdf
Dim reader As iTextSharp.text.pdf.PdfReader = Nothing
tmp = pdf.parser.PdfTextExtractor.GetTextFromPage(reader, 1, New pdf.parser.SimpleTextExtractionStrategy())
If tmp.Length = 0 Then
sImgPDFLst = "Following files are IMAGE PDF"
End If
reader.Dispose()
reader.Close()
reader = Nothing
link: https://drive.google.com/file/d/0B_nzYHWVJJ7KYjI2OXl2MlFlVzA/edit?usp=sharing
推荐答案
这篇关于在itextsharp中出现意外的色彩空间/ CS5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!