Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a pdf file which scanned from a the drawing. And I want to convert it to pdf file with text format or text file.so How can I do that in VB.NET?
Posted

Buy buying a PDF library, and if your PDF is a scan, an OCR library also.

There is no built in support for OCR or anything to do with PDFs in .NET.
 
Share this answer
 
if it is text format,I readed it to text file but with scan fromat I can't. I tried using itextshap library in VB.NET to read but false.I hope that anybody can help me resolve this problem!
 
Share this answer
 
Comments
Christian Graus 27-Aug-10 2:44am    
To reiterate, if you scanned a document, it's not text, it's a bitmap. iTextSharp may well be able to extract that bitmap, but you need to buy an OCR library to convert it to text.

And, don't push 'answer' to add comments. Push comment, like I did here.
<pre><pre lang="vb">
Public Sub SubFoldersRecursive(ByVal Root As DirectoryInfo, ByRef Status As String)
Try
Status += Root.FullName + vbNewLine
If (Root.GetDirectories.Length <= 0) Then
Exit Sub
End If
Dim SD As DirectoryInfo
For Each SD In Root.GetDirectories
SubFoldersRecursive(SD, Status)
Next
Catch ex As Exception
Status += ex.Message + vbNewLine
End Try
End Sub
'NON-Recursive Function To Find All SubDirectory Names
Public Sub SubFolders(ByVal Root As DirectoryInfo, ByRef Status As String)
Dim Dir As DirectoryInfo
Status += Root.FullName + vbNewLine
For Each Dir In Root.GetDirectories("*", SearchOption.AllDirectories)
Status += Dir.FullName + vbNewLine
Next
End Sub




</pre></pre>
 
Share this answer
 

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