locked
how to convert from pdf file to text using vb.net RRS feed

  • Question

  • how to convert from pdf file to text and save this text on database using vb.net


    wael shazly

    Wednesday, April 4, 2012 7:47 AM

Answers

  • Hello wael 

    A pdf file is not text in the way as a text is used in a database. Text is a long string of characters.

    If you want to save a pdf file in a database then do it like a blob, image (bytearray)

    Take a look at this sample on our website which takes them all.

    http://www.vb-tips.com/datasetimage.aspx


    Success
    Cor

    • Proposed as answer by Mark Liu-lxf Friday, April 6, 2012 2:07 AM
    • Marked as answer by Mark Liu-lxf Thursday, April 12, 2012 7:04 AM
    Wednesday, April 4, 2012 9:31 AM
  • You could try using iTextSharp (http://sourceforge.net/projects/itextsharp/): this library is intended to be used with C#, but the code can be converted in Visual Basic.

    Bye.


    Luigi Bruno - Microsoft Community Contributor 2011 Award

    • Proposed as answer by Mark Liu-lxf Friday, April 6, 2012 2:07 AM
    • Marked as answer by Mark Liu-lxf Thursday, April 12, 2012 7:04 AM
    Wednesday, April 4, 2012 2:10 PM

All replies

  • Hello wael 

    A pdf file is not text in the way as a text is used in a database. Text is a long string of characters.

    If you want to save a pdf file in a database then do it like a blob, image (bytearray)

    Take a look at this sample on our website which takes them all.

    http://www.vb-tips.com/datasetimage.aspx


    Success
    Cor

    • Proposed as answer by Mark Liu-lxf Friday, April 6, 2012 2:07 AM
    • Marked as answer by Mark Liu-lxf Thursday, April 12, 2012 7:04 AM
    Wednesday, April 4, 2012 9:31 AM
  • You could try using iTextSharp (http://sourceforge.net/projects/itextsharp/): this library is intended to be used with C#, but the code can be converted in Visual Basic.

    Bye.


    Luigi Bruno - Microsoft Community Contributor 2011 Award

    • Proposed as answer by Mark Liu-lxf Friday, April 6, 2012 2:07 AM
    • Marked as answer by Mark Liu-lxf Thursday, April 12, 2012 7:04 AM
    Wednesday, April 4, 2012 2:10 PM