使用vb.net或c#.net读取PDF或HTML页面并从中获取数据 [英] Read PDF or HTML page and get data from it using vb.net or c#.net

查看:68
本文介绍了使用vb.net或c#.net读取PDF或HTML页面并从中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...我想从html页面/pdf中获取数据,显示在页面上的某些数据...仅该页面指定的数据我不必读取页面的所有内容...如果有解决方案的话请建议我..

hi... i want to fetch data from html page/pdf some data that are shown on page...Only that page specify data i have to read not all content of the page... if any one has solution plz suggest me ..

推荐答案

HTML:
请确保每个网站都必须阅读bcoz哪些内容具有内容风格.因此,您可以使用jquery或javascript通过查找和获取HTML页面的标记值(如<标题> ,< 1小时,< h2> ,< h3 ,< &等.
您必须将wepage html url发送到javascript或jq代码..
如果您是从客户端通过javascript或jquery读取的,则可以通过hiddenfields将这些数据发送到服务器端.
PDF
而且我不知道要访问PDF内容.我们有用于此的第三方软件.
HTML:
Please make sure which content you have to read bcoz every website has the style of content. So you can read it using jquery or javascript by locating and fetching the tag values of HTML page like < title > , < h1 > , < h2 > , < h3 > , < P > , etc..
You wud have to send the wepage html url to javascript or jq code..
if you read it through the javascript or jquery from the client side, you can send those data to server side through hiddenfields..

PDF
And i have no idea to access to PDF contents. We have thirdparty softwares for this.


这篇关于使用vb.net或c#.net读取PDF或HTML页面并从中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆