0
我使用itextsharp预定义页面大小填充了下拉列表。
我需要选定的页面尺寸传递到:无法投射'System.String'类型的对象来键入'iTextSharp.text.Rectangle'
pdfDoc = new Document(dropdownlist.selectedvalue, 50, 50, 50, 50);
我得到错误:
无法转换类型 'System.String' 输入 “iTextSharp.text的对象。矩形“
我该如何传递代表最常见纸张大小的矩形对象,并从下拉菜单中选择
如何将字符串投射到iTextSharp.text.Rectangle
?
在此先感谢