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
  1. Home
  2. General Programming
  3. C#
  4. Reading pdf file as text from the URL.

Reading pdf file as text from the URL.

Scheduled Pinned Locked Moved C#
csharphelpquestion
2 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    aakar
    wrote on last edited by
    #1

    Hi, I am trying to get the contents of a pdf file as text in my C# .net program. I am using PDFBox 3.0 for reading the pdf as text. However, the problem is that the pdf file is not physically located on the same machine and I am accessing it through a URL. The PDFBox documentation shows that there is a static function which is of the form : PDDocument load(URL url) This will load a document from a url. However, C# does not have a URL class but rather it has a URI class. Can anybody suggest a workaround. Or is there any other free tool that would help me achieve reading the pdf file as text from a URL? Any help would be appreciated. Thanks, Aakar.

    C 1 Reply Last reply
    0
    • A aakar

      Hi, I am trying to get the contents of a pdf file as text in my C# .net program. I am using PDFBox 3.0 for reading the pdf as text. However, the problem is that the pdf file is not physically located on the same machine and I am accessing it through a URL. The PDFBox documentation shows that there is a static function which is of the form : PDDocument load(URL url) This will load a document from a url. However, C# does not have a URL class but rather it has a URI class. Can anybody suggest a workaround. Or is there any other free tool that would help me achieve reading the pdf file as text from a URL? Any help would be appreciated. Thanks, Aakar.

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

      If the method takes a URL, then it must provide a URL class, unless it just takes it as a URI or a string. What do the docs say ? Are there samples ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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