(21-06-16, 11:22 PM)الوادي كتب : يا الغلبان،
لو رفعت مشروعك، لأن أغلبنا ما عنده iTextSharp من شان يجرب.
تفضل اخي سوف تجد الاداه في مجلد bin\Debug
(21-06-16, 11:42 PM)الشاكي لله كتب : تفضل هذه الدالة :-
تعطيها رابط ملف الpdf وترجع لك مصفوفة string
PHP كود :
Public Function PdfToArray(pdfPath As String) As String()
Using reader As New PdfReader(path)
Dim text As New StringBuilder()
Dim Strategy As ITextExtractionStrategy = New iTextSharp.text.pdf.parser.LocationTextExtractionStrategy()
For i As Integer = 1 To reader.NumberOfPages
Dim page As String = ""
page = PdfTextExtractor.GetTextFromPage(reader, i, Strategy)
Dim lines As String() = page.Split(ControlChars.Lf)
Return lines
Next
End Using
End Function
مشكور اخي الشاكي ساجرب الكود و لى عودة ان شاءالله
(21-06-16, 11:42 PM)الشاكي لله كتب : تفضل هذه الدالة :-
تعطيها رابط ملف الpdf وترجع لك مصفوفة string
PHP كود :
Public Function PdfToArray(pdfPath As String) As String()
Using reader As New PdfReader(path)
Dim text As New StringBuilder()
Dim Strategy As ITextExtractionStrategy = New iTextSharp.text.pdf.parser.LocationTextExtractionStrategy()
For i As Integer = 1 To reader.NumberOfPages
Dim page As String = ""
page = PdfTextExtractor.GetTextFromPage(reader, i, Strategy)
Dim lines As String() = page.Split(ControlChars.Lf)
Return lines
Next
End Using
End Function
ظهر لى رسالة خطاء
Error 1 'Using' operand of type 'iTextSharp.text.pdf.PdfReader' must implement 'System.IDisposable'
