if (builder.MoveToBookmark("FooterImgPath") && !string.IsNullOrEmpty(imgPath)&& System.IO.File.Exists(imgPath)) { //页脚插入图片浮动 Shape shape = builder.InsertImage(imgPath,146,35); shape.BehindText=false; shape.WrapType=WrapType.None; shape.Top = 20; //进行水平居中 shape.HorizontalAlignment=HorizontalAlignment.Right; shape.VerticalAlignment=VerticalAlignment.Center; }