回复 12楼indigodai的帖子
恩,请通过以下代码设置:
- textControl.Create();
- textControl.Load("Hello world, " + DateTime.Now, StringStreamType.HTMLFormat);
- textControl.PageUnit = MeasuringUnit.Point;
- textControl.PageMargins = new PageMargins(0, 0, 0, 0);
- textControl.PageSize = new PageSize(50, 50);
- SaveSettings saveSettings = new SaveSettings();
- saveSettings.PageSize = new PageSize(50, 50);
- textControl.Save(out pdfBytes, BinaryStreamType.AdobePDF);
复制代码 |