Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. how to read pdf file....

how to read pdf file....

Scheduled Pinned Locked Moved C#
comhelptutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raj231362
    wrote on last edited by
    #1

    hi..friend, I tried PDFBox. i am working on window apllication dot net framwork 3.5 and as per your information i added .dll file- # IKVM.GNU.Classpath.dll # PDFBox-0.7.3.dll # FontBox-0.1.0-dev.dll # IKVM.Runtime.dll in my application and also used this code to open pdf,here is my code... string Ppath = "C:\\Documents and Settings\\Administrator\\Desktop\\sample \\KT_19100101\\AC_01\\0001.pdf"; PDDocument doc = PDDocument.load(Ppath ); PDFTextStripper pdfStripper = new PDFTextStripper(); but i got error message like.. expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014 string aaa = pdfStripper.getText(doc); so please send realted code to my mail id... bettiahamit@gmail.com i really appriciated you. i am waiting your response. thx, amit

    C T 2 Replies Last reply
    0
    • R raj231362

      hi..friend, I tried PDFBox. i am working on window apllication dot net framwork 3.5 and as per your information i added .dll file- # IKVM.GNU.Classpath.dll # PDFBox-0.7.3.dll # FontBox-0.1.0-dev.dll # IKVM.Runtime.dll in my application and also used this code to open pdf,here is my code... string Ppath = "C:\\Documents and Settings\\Administrator\\Desktop\\sample \\KT_19100101\\AC_01\\0001.pdf"; PDDocument doc = PDDocument.load(Ppath ); PDFTextStripper pdfStripper = new PDFTextStripper(); but i got error message like.. expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014 string aaa = pdfStripper.getText(doc); so please send realted code to my mail id... bettiahamit@gmail.com i really appriciated you. i am waiting your response. thx, amit

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      raj231362 wrote:

      as per your information i

      You're mistaken. I didn't tell you anything. If you want to continue a discussion with someone, reply on that thread.

      raj231362 wrote:

      expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014

      Are you sure your PDF is well formed

      raj231362 wrote:

      so please send realted code to my mail id... bettiahamit@gmail.com

      You are an idiot. 1 - if you registered with this email, you would get any reply emailed to you 2 - putting your email on a public forum is a good way to get spam 3 - why would we email someone who wants our help but apparently doesn't value this forum enough to read it ?

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      R 1 Reply Last reply
      0
      • C Christian Graus

        raj231362 wrote:

        as per your information i

        You're mistaken. I didn't tell you anything. If you want to continue a discussion with someone, reply on that thread.

        raj231362 wrote:

        expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014

        Are you sure your PDF is well formed

        raj231362 wrote:

        so please send realted code to my mail id... bettiahamit@gmail.com

        You are an idiot. 1 - if you registered with this email, you would get any reply emailed to you 2 - putting your email on a public forum is a good way to get spam 3 - why would we email someone who wants our help but apparently doesn't value this forum enough to read it ?

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        R Offline
        R Offline
        raj231362
        wrote on last edited by
        #3

        hi Christian, sorry for that mistake... please help me if there is such mistaken by me...what is this..!! help me..!! thx raj

        1 Reply Last reply
        0
        • R raj231362

          hi..friend, I tried PDFBox. i am working on window apllication dot net framwork 3.5 and as per your information i added .dll file- # IKVM.GNU.Classpath.dll # PDFBox-0.7.3.dll # FontBox-0.1.0-dev.dll # IKVM.Runtime.dll in my application and also used this code to open pdf,here is my code... string Ppath = "C:\\Documents and Settings\\Administrator\\Desktop\\sample \\KT_19100101\\AC_01\\0001.pdf"; PDDocument doc = PDDocument.load(Ppath ); PDFTextStripper pdfStripper = new PDFTextStripper(); but i got error message like.. expected='startxref' actual='13' org.pdfbox.io.PushBackInputStream@158d014 string aaa = pdfStripper.getText(doc); so please send realted code to my mail id... bettiahamit@gmail.com i really appriciated you. i am waiting your response. thx, amit

          T Offline
          T Offline
          tom572007
          wrote on last edited by
          #4

          I don't know how use this library. I 'll advise you to use the iTextSharp library which is well know by a large number of developpers. It seems to be easier to get tutorial on the net...

          modified on Friday, April 24, 2009 5:45 AM

          R 1 Reply Last reply
          0
          • T tom572007

            I don't know how use this library. I 'll advise you to use the iTextSharp library which is well know by a large number of developpers. It seems to be easier to get tutorial on the net...

            modified on Friday, April 24, 2009 5:45 AM

            R Offline
            R Offline
            raj231362
            wrote on last edited by
            #5

            hi..tom, thx for ur warm response... if there is any related topic or example?? which provide me some help...!! i am waiting ur response. thx raj

            T 1 Reply Last reply
            0
            • R raj231362

              hi..tom, thx for ur warm response... if there is any related topic or example?? which provide me some help...!! i am waiting ur response. thx raj

              T Offline
              T Offline
              tom572007
              wrote on last edited by
              #6

              I think you were able to it yourself, it pretty easy X| : Here The first answer is a Code project link, so you can also search on the website before annoying people with small talk

              R 1 Reply Last reply
              0
              • T tom572007

                I think you were able to it yourself, it pretty easy X| : Here The first answer is a Code project link, so you can also search on the website before annoying people with small talk

                R Offline
                R Offline
                raj231362
                wrote on last edited by
                #7

                thx tom,

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups