/// <summary>
/// PPT转换pdf
/// </summary>
/// <param name="PathFile">源文件路径</param>
/// <param name="OutPathFile">保存Pdf路径</param>
/// <returns></returns>
public bool PptToPdf(string PathFile, string OutPathFile)
{
try
{
//PPT
Presentation ppt = new Presentation(PathFile);
ppt.Save(OutPathFile, Aspose.Slides.Export.SaveFormat.Pdf);
return true;
}
catch (Exception ex)
{
return false;
}
}
Asponse PPT转换Pdf
最新推荐文章于 2024-07-08 02:39:31 发布