Reading pdf file as text from the URL.
-
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.
-
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.
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.