Skip to content

Commit eeb218c

Browse files
committed
Updated Comments
1 parent a0975c6 commit eeb218c

File tree

1 file changed

+3
-5
lines changed
  • PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/ASP.NET-Core-Web-API/Convert-PowerPoint-Presentation-to-PDF/Convert-PowerPoint-Presentation-to-PDF/Controllers

1 file changed

+3
-5
lines changed

PPTX-to-PDF-conversion/Convert-PowerPoint-presentation-to-PDF/ASP.NET-Core-Web-API/Convert-PowerPoint-Presentation-to-PDF/Convert-PowerPoint-Presentation-to-PDF/Controllers/ValuesController.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Syncfusion.PresentationRenderer;
66
using System.IO;
77

8-
98
namespace Convert_PowerPoint_Presentation_to_PDF.Controllers
109
{
1110
[Route("api/[controller]")]
@@ -14,11 +13,11 @@ public class ValuesController : ControllerBase
1413
{
1514
[HttpGet]
1615
[Route("api/ConvertToPdf")]
17-
public IActionResult ConvertToPdf()
16+
public IActionResult ConvertPPTXToPdf()
1817
{
1918
try
2019
{
21-
var fileDownloadName = "Converted.pdf";
20+
var fileDownloadName = "Output.pdf";
2221
const string contentType = "application/pdf";
2322
var stream = ConvertPresentationToPdf();
2423
stream.Position = 0;
@@ -31,10 +30,9 @@ public IActionResult ConvertToPdf()
3130
}
3231
public static MemoryStream ConvertPresentationToPdf()
3332
{
34-
//Open the existing PowerPoint presentation with loaded stream.
33+
//Open the existing PowerPoint presentation.
3534
using (IPresentation pptxDoc = Presentation.Open(Path.GetFullPath("Data/Input.pptx")))
3635
{
37-
3836
//Convert the PowerPoint presentation to PDF document.
3937
using (PdfDocument pdfDocument = PresentationToPdfConverter.Convert(pptxDoc))
4038
{

0 commit comments

Comments
 (0)