Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
Hi all,
I'm new to Syncfusion controls and forgive me for my poor English.
I'm qualified in the Syncfusion Community program and already downloaded the Essential Studio Enterprise Edition - Community license version 24.1.41.
I have an application developed in ASP.NET (web forms)/VB.NET and now I need to create a function to convert a Powerpoint file (PPTX) to PDF format. My doubts are bellow:
Finally, as I don't have experience with Syncfusion controls, could anyone show me what is the best way to do this and, if possible, send some tutorial or source code?
Thanks in advance,
Marcelo Camarate
Hi Marcelo,
Regarding “Can I use Essential Studio Enterprise Edition version 24.1.41
directly in an ASP.NET (web forms)/VB.NET application?”:
Yes, you can use Essential Studio Enterprise Edition. You can refer to the
controls in Syncfusion through the below link:
https://www.syncfusion.com/products/essential-studio
Regarding “If yes, does Essential Studio Enterprise Edition have controls to
read a Powerpoint (PPTX) file and convert it to PDF or I need to download some
other Syncfusion control?”:
You can use the .NET
PowerPoint library to create, read, write, and convert Microsoft PowerPoint
files by using C# and VB.NET code from any of the following .NET platforms
- Windows
Forms, WPF, ASP.NET, ASP.NET
MVC, ASP.NET
Core, Blazor, WPF, Xamarin, WinUI and .NET
MAUI applications.
You can refer to the following links for more details.
Documentation |
Reference links |
Overview |
https://help.syncfusion.com/file-formats/presentation/overview |
PPTX to PDF |
https://help.syncfusion.com/file-formats/presentation/presentation-to-pdf |
GitHub examples |
Reference link |
Overview |
https://github.com/SyncfusionExamples/PowerPoint-Examples/tree/master |
PPTX to PDF |
Online demos |
Reference link |
Overview |
https://ej2.syncfusion.com/aspnetcore/PowerPoint/Default#/material |
PPTX to PDF |
https://ej2.syncfusion.com/aspnetcore/PowerPoint/PPTXToPDF#/material |
Regarding “If not, can I create a function in ASP.NET
Core or MVC in Visual Studio and generate a DLL file that can be imported into
my ASP.NET (web forms)/VB.NET application? How?”:
Our ASP.NET
NuGets are deprecated, you can use any of the following suggestions:
1. If you wish to use
ASP.NET (Web forms), we suggest you to upgrade your application to ASP.NET Core
and use the corresponding NuGet (Syncfusion.PresentationRenderer.Net.Core),where
you can get similar features and deploy the application in cross platforms also
(Linux, Mac). Refer the below link for more reference:
Documentation |
Reference links |
PPTX to PDF in ASP.NET Core |
https://help.syncfusion.com/file-formats/presentation/convert-powerpoint-to-pdf-in-asp-net-core |
Migrate Presentation library from .NET Framework to .NET Core |
https://help.syncfusion.com/file-formats/presentation/faqs/migrate-from-net-framework-to-net-core |
2. Else, if you wish to use .NET Framework target application means, we suggest
you to use ASP.NET MVC NuGet package (Syncfusion.PresentationToPdfConverter.AspNet.Mvc5).
Similarly, you can use ASP.NET MVC NuGet package (Syncfusion.PresentationToPdfConverter.AspNet.Mvc5)directly
from nuget.org or build installed location for VB.NET applications. You can
download the VB sample from the attachment.
Regards,
Sneha.
Sorry for the inconvenience, I have attached the VB sample which uses ASP.NET MVC NuGet package below.
Hi Sneha Biju,
Thank you very much for reply.
I did a test application to evaluate your suggestions and it was almost perfect.
The only problem that I found in PresentationToPdfConverter class use is that it converted some text boxes without borders in the original PPTX file and added borders to them in PDF file, as you can see in the attached image.
Do you know how to fix this?
Thanks in advance,
Marcelo Camarate
Marcelo, we have prepared a PPTX file by adding text boxes
with and without borders, and it is preserved properly when converted to PDF.
We have also prepared a sample for converting PPTX to PDF using the prepared
PPTX file. You can find the sample attached below, and the PPTX file is located
in the Data folder.
If you are still facing the same issue, kindly share the following information
with us so that we can replicate the exact issue on our end:
1. Input PPTX file
2. Code snippet (if it differs from the provided sample)
Thereby, we will be able to further analyze the issue and provide you with a
solution as soon as possible.
Hi Sneha Biju,
Thanks for your reply.
As my application is developed in ASP.NET (Web forms)/VB.NET, I needed to convert your C# code to VB.NET. So, I attached a ZIP file with the test solution. But, because of the 30MB limit for attached files, I cleaned up the "packages" folder with the Syncfusion packages.
In it, have a "Files" folder with a file "SyncFusionTest.pptx" to be converted. As you can see on the second slide, the text boxes on the left side do not have borders. However, they appear with borders after running the test project.
Am I doing something wrong or is it a bug?
Thanks in advance,
Marcelo Camarate
Marcelo, we have reproduced the reported problem in ASP.NET Core “Textboxes are not preserved properly while converting PPTX to PDF” in our end. We will validate this issue and update you with more details by starting of next week.
Marcelo, we have confirmed that the reported issue with “Line format color for shape is not applied properly while converting PowerPoint Presentation to PDF”, is a defect and we have logged a defect report. We will provide a fix which is estimated to be available on or before 23rd, January 2024.
The status of this bug can be tracked through the
below link:
https://www.syncfusion.com/feedback/49807/line-format-color-for-shape-is-not-applied-properly-while-converting-powerpoint
Marcelo, as promised
earlier, we have included the fix for the reported issue with “Line format color for shape is not applied properly
while converting PowerPoint Presentation to PDF” in our latest weekly NuGet release (v24.1.47).
Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/24.1.47
The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/49807/line-format-color-for-shape-is-not-applied-properly-while-converting-powerpoint
Note: We will include this fix in our 2023 Volume 4 SP release, which
will be available in the end of January 2024.
Hi Sneha Biju,
I downloaded your new version 24.1.47 in NuGet site and now the convertion from PPTX to PDF working fine. Congratulations to your work and thank you very much.
Best regards,
Marcelo Camarate
Marcelo,
You're welcome! Please get back to us if you need any other assistance.