ToPdf

ToPdf(string, string)

Converts Presentation to PDF.

public static void ToPdf(string presPath, string outPath)
ParameterTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path

Examples

Convert.ToPdf("pres.pptx", "pres.pdf");

See Also


ToPdf(string, string, IPdfOptions)

Converts Presentation to PDF.

public static void ToPdf(string presPath, string outPath, IPdfOptions options)
ParameterTypeDescription
presPathStringPath of the input presentation
outPathStringOutput path
optionsIPdfOptionsOutput PDF options

Examples

Convert.ToPdf("pres.pptx", "pres.pdf", new PdfOptions{ Compliance = PdfCompliance.PdfUa });

See Also


ToPdf(Presentation, string)

Converts Presentation to PDF.

public static void ToPdf(Presentation pres, string outPath)
ParameterTypeDescription
presPresentationInput presentation
outPathStringOutput path

Examples

using (Presentation pres = new Presentation("input.pptx"))    
{
    Convert.ToPdf(pres, "output.pdf");
} 

See Also


ToPdf(Presentation, string, IPdfOptions)

Converts Presentation to PDF.

public static void ToPdf(Presentation pres, string outPath, IPdfOptions options)
ParameterTypeDescription
presPresentationInput presentation
outPathStringOutput path
optionsIPdfOptionsOutput PDF options

Examples

using (Presentation pres = new Presentation("input.pptx"))    
{
    Convert.ToPdf(pres, "output.pdf", new PdfOptions{ Compliance = PdfCompliance.PdfUa });
} 

See Also