![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
huling314
这个作者很懒,什么都没留下…
展开
-
win 64位“结束进程”(映像路径名称)
//查找进程、结束进程void killProcess(){ Process[] pro = Process.GetProcesses();//获取已开启的所有进程 //遍历所有查找到的进程 foreach (var p in pro) { if (p.ProcessName.ToString().ToLower() == "taskname") { string path = pro[i].MainModule.FileName.ToString(); if (p原创 2021-07-02 14:38:34 · 143 阅读 · 0 评论 -
C#爬虫selenium webdriver使用火狐浏览器截取全屏并转成pdf
对于网页页面很长的,使用webdriver自带的方法进行截屏时,默认的最大截取宽度是16384,超过最大宽度就要对页面进行裁剪拼接public Bitmap GetFullScreenshot() { Bitmap stitchedImage = null; try { long totalwidth1 = (long)((IJavaScriptExecutor)this.webD.原创 2021-07-01 10:22:39 · 636 阅读 · 0 评论 -
C# 爬虫使用Selenium webDriver下载excel文件
QA.Firefox.FirefoxOptions ffOptions = new QA.Firefox.FirefoxOptions(); string tmpPath =@"D:\xiangcai"; if (!System.IO.Directory.Exists(tmpPath)) { System.IO原创 2021-05-10 15:11:16 · 793 阅读 · 0 评论 -
itextsharp读取PDF中表格中内容,并处理
using iTextSharp.text.pdf;using iTextSharp.text.pdf.parser;private void GetPDFTableInfo(string catchDate, string institutionId, string institution, string fileName) { PdfReader reader = new PdfReader(fileName); int pageCou原创 2021-03-17 16:24:34 · 3016 阅读 · 0 评论