合并PDF文件,并下载
需要在NuGet 引入 GroupDocs.Merger
string filePath = PathUtils.GetPhysicalPath(KeyConst.TEMPFILEPATH,fileName);//绝对地址
string filePath2 = PathUtils.GetPhysicalPath(KeyConst.TEMPFILEPATH,fhtzfileName);
string filePathOut = PathUtils.GetPhysicalPath(KeyConst.TEMPFILEPATH,"aaa.pdf");
using (Merger merger = new Merger(filePath2))
{
merger.Join(filePath);
merger.Save(filePathOut);
}
string _OutzipServicePath = PathUtils.GetServerPath(KeyConst.TEMPFILEPATH, "aaa");
_OutzipServicePath += ".pdf";
//下载文件
DynamicFormShowParameter param = new DynamicFormShowParameter();
param.FormId = "BOS_FileDownLoad";
param.OpenStyle.ShowType = ShowType.Modal;
param.CustomParams.Add("IsExportData", "true");
param.CustomParams.Add("url", _OutzipServicePath);
this.View.ShowForm(param);
请问groupdocs.merger是否支持.netframework,version=v4.0
合并PDF文件,并下载
本文2024-09-16 18:08:58发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-20263.html