1

使用 itextsharp dll 进行 pdf 转换,需要解析 htmlString,它是视图页面的返回,具有 Telerik 网格,即使在剥离 htmlstring 中的 javascripts 之后,由于 telerik 网格元素其转换的 javascripts 很少。

下面是我作为结果视图页面获得的 html 标记。

类型="文本/javascript">

                                        <li><a class="top" href='/User/UserProfile'>
                                            <img style="padding-right: 5px;" src='/Images/profile.gif'>Profile</a></li>
                                        <li><a class="bottom" href='/Home/GeneralSetting'>
                                            <img style="padding-right: 5px;"

src='/Images/settings.gif'>设置

= null) { substring = substring.replace( "HEIGHT: 200px", "" ); substring = substring.replace(/class="t-widget t-grid"/g, "class=t-widget t-grid style='overflow:visible;overflow-x:visible;overflow-y:visible;'" ); substring = substring.replace("PADDING-RIGHT: 17px", "line-height:0px;"); substring = substring.replace("宽度:

4

0 回答 0