ToPdf
内容
[
隐藏
]ToPdf(string, string)
将Presentation
转换为PDF。
public static void ToPdf(string presPath, string outPath)
参数 | 类型 | 描述 |
---|---|---|
presPath | String | 输入演示文稿的路径 |
outPath | String | 输出路径 |
示例
Convert.ToPdf("pres.pptx", "pres.pdf");
另请参阅
- class Convert
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
ToPdf(string, string, IPdfOptions)
将Presentation
转换为PDF。
public static void ToPdf(string presPath, string outPath, IPdfOptions options)
参数 | 类型 | 描述 |
---|---|---|
presPath | String | 输入演示文稿的路径 |
outPath | String | 输出路径 |
options | IPdfOptions | 输出PDF选项 |
示例
Convert.ToPdf("pres.pptx", "pres.pdf", new PdfOptions{ Compliance = PdfCompliance.PdfUa });
另请参阅
- interface IPdfOptions
- class Convert
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
ToPdf(Presentation, string)
将Presentation
转换为PDF。
public static void ToPdf(Presentation pres, string outPath)
参数 | 类型 | 描述 |
---|---|---|
pres | Presentation | 输入演示文稿 |
outPath | String | 输出路径 |
示例
using (Presentation pres = new Presentation("input.pptx"))
{
Convert.ToPdf(pres, "output.pdf");
}
另请参阅
- class Presentation
- class Convert
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides
ToPdf(Presentation, string, IPdfOptions)
将Presentation
转换为PDF。
public static void ToPdf(Presentation pres, string outPath, IPdfOptions options)
参数 | 类型 | 描述 |
---|---|---|
pres | Presentation | 输入演示文稿 |
outPath | String | 输出路径 |
options | IPdfOptions | 输出PDF选项 |
示例
using (Presentation pres = new Presentation("input.pptx"))
{
Convert.ToPdf(pres, "output.pdf", new PdfOptions{ Compliance = PdfCompliance.PdfUa });
}
另请参阅
- class Presentation
- interface IPdfOptions
- class Convert
- namespace Aspose.Slides.LowCode
- assembly Aspose.Slides