c# - Which Reference should I use to resolve the Image class? -


i adapted code here try add image pdf file, generate using itextsharp. here's code:

string imagepath = server.mappath("pictures"); image gif = image.getinstance(imagepath + "/officeuseonlyimg.png"); doc.add(gif); 

the "image" class unrecognized, right-clicked resolve it; taken aback embarassment of riches - 4 references of picturelypse offered services:

enter image description here

so 1 should choose? reckon 1 of itextsharp references, 1 preferred?

the itextsharp.tool.* stuff part of xml worker, not of itextsharp core. need itextsharp.text.image.

the itextsharp.tool.xml.html.image class class maps <img> tag itextsharp.text.image object. shouldn't use unless want tweak xml worker.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -