Rank: Newbie Groups: Member
Joined: 4/8/2013 Posts: 1
|
Hi, I'm trying your EO Pdf product and I must say it's very impressive, good work! I've found all of my "must have" feature... the only thing I can't figure out how to achieve is reading attributes from an HTMLElement object. Is there a way to do that?
I.E.:
result = EO.Pdf.HtmlToPdf.ConvertUrl("...") myElement = result.HtmlDocument.GetElementsById("myId") myElement.getAttribute("data-info") <= this is not a real method, I don't know how to get the "data-info" html attribute value.
Tanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You won't be able to get an arbitrary attributes. You can only get a few attributes from several properties exposed by the HtmlElement class, such as ID, ClassName and InnerText.
Thanks!
|