回复 1楼hptj的帖子
页眉设置需要单独设置:
- TXTextControl.Section currentSection = textControl1.Sections.GetItem();
- HeaderFooter hd = currentSection.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.Header);
- hd.Activate();
- hd.Selection = new Selection(0, -1);
- hd.Selection.FontName = "宋体";
- this.textControl1.Save("demo.pdf", TXTextControl.StreamType.AdobePDF);
复制代码 |