Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 14-Mar-14 3:13am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900