0
我修改了here的一些代码,尝试将图像添加到我使用iTextSharp生成的PDF文件中。代码如下:我应该使用哪个引用来解析Image类?
string imagepath = Server.MapPath("Pictures");
Image gif = Image.GetInstance(imagepath + "/OfficeUseOnlyImg.png");
doc.Add(gif);
“图像”类无法识别,所以我右键单击以解决它;我吃了一惊与财富的尴尬 - 在Picturelypse的四个参考所有提供他们的服务:
所以,我应该选择哪一个?我认为其中一个iTextSharp参考,但哪一个是首选?