如何插给文件插入页眉页脚?

示例代码如下:

void AddHeaderFooter()
{
	FR_Document frDoc = FRAppGetActiveDocOfPDDoc();
	FPD_Document fpdDoc = FRDocGetPDDoc(frDoc);
	FR_DocView frDocView = FRDocGetCurrentDocView(frDoc);
	FR_PageView frPageView = FRDocViewGetCurrentPageView(frDocView);
	FR_HeaderFooterElementInfo headerFooterInfo;
	headerFooterInfo.fFontSize = 10;
	headerFooterInfo.clrText = RGB(255, 0, 0);//设置颜色
	headerFooterInfo.lpwStrFontName = L"微软雅黑 Light";//设置字体
	headerFooterInfo.nStart = 0;
	headerFooterInfo.nEnd = 3;
	headerFooterInfo.lpwsFooterCenter = L"测试:m/d"; 
	FRDocAddHeaderFooter(frDoc, &headerFooterInfo);
	FRDocAddAndUpdateHeaderFooter(frDoc, &headerFooterInfo);
}