一:url抓取图片存入本地 c#
二:将图片和文字存入PDF c#
程序下载地址:https://download.csdn.net/download/us2019/12888680
将url网页上获取的图片存入到项目的根目录下,然后将本地的图片存入到pdf中,会在bin/debug目录下生成pdf。
一:url抓取图片存入本地 c#
创建一个字典批量存储一下
调用此方法会在bin/debug目录下生成pdf。
private void button1_Click(object sender, EventArgs e)
{
Dictionary<string, List<string>> dic = new Dictionary<string, List<string>>();
dic.Add("http://www.shuoshuoxq.com/uploads/images/2020/20202.jpg", new List<string>() { "", "", "第一张图 ", "识别时间2020-09-09 09:00:12", "经度120.68328086θ", "维度 31.31032642", " 事件分析,浓度中等", " 打印工单:是" });
dic.Add("http://www.shuoshuoxq.com/uploads/images/2020/20273.jpg", new List<string>() { "", "", "第二张图 ", "识别时间2020-10-09 09:00:12", "经度120.68328086θ", "维度 31.31032642", " 事件分析,浓度中等", " 打印工单:是" });
dic.Add("http://www.shuoshuoxq.com/uploads/images/2020