Conversion of Word Document into PPTX via an Intermediate PDF Conversion

Hi,

I have a requirement on DOCX to PPTX conversion.
I’ve installed Aspose.Total with a temporary license & working on .NET framework.

My approach: DOCX to PDF conversion with landscape orientation. This works fine. But now when I try converting this PDF to PPTX, the final PPT file looks good yet not friendly enough for editing.

This is because I can see each sentence or each line in the converted PPT is rendered as individual text box.

Can you please tell me if the final PPTX can be made more friendly to edit by any means?

Here’s some information that you might need:

  • OS version on which the code was executed: Windows 10
  • .NET target platform in the app: Am currently trying this on .NET Framework 4.7.2 & we might want this to work on .NET Core 3.1 & higher versions too.
  • Aspose.Slides and Aspose.Words versions I used: I used Aspose.Total (Aspose.Slides: 23.1.0.0 & Aspose.Words: 22.12.0.0)

Thanks,
Nivedhitha

@niverajkumar,
Thank you for describing the issue.

Please share the following files in information:

  • input Word document
  • intermediate PDF document
  • final PPTX document
  • the simplest code example that reproduces the problem

The structure of the final document depends on the structure of the input documents. We need the files mentioned above.

@andrey.potapov Hi,

I’ve attached the 3 files that you’ve asked for: Single page Example.zip (155.5 KB)
& Here’s the sample code that I use for this conversion:

public static void PdfToPresentationConverter()
{
    var license = new License();
    using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("ConsoleApp2.Aspose.Total.NET.lic"))
    {
        license.SetLicense(stream);
    }

    string filename = "Single page Example";

    Aspose.Words.Document doc = new Aspose.Words.Document(filename + ".docx");
    foreach (Aspose.Words.Section sec in doc.Sections)
    {
        sec.PageSetup.Orientation = Aspose.Words.Orientation.Landscape;
    }
    doc.Save(filename + ".pdf");


    Stream pdfStream = new FileStream(filename + ".pdf", FileMode.Open, FileAccess.ReadWrite);

    Presentation pres = new Presentation();
    pres.Slides.AddFromPdf(pdfStream);
    if (pres.Slides.Count > 1)
    {
        pres.Slides.RemoveAt(0);
    }

    pres.Save(filename + ".pptx", SaveFormat.Pptx);

}

Thanks,
Nivedhitha

@niverajkumar,
Thank you for the code example and files. Could you please describe the expected result in more detail for the case?

@andrey.potapov
Hi, The result is expected to have the text content friendly to edit (.i.e to support bullets, numbering, etc when a sentence is being added or removed, etc.)

I’ve attached a PPT slide which was directly created with MS Powerpoint for your reference. Single Page Expected Output.zip (120.6 KB)

So in short, we expect the converted final PPT from Aspose to have the editing capabilities of a normal PPT created using MS Powerpoint.

Thanks,
Nivedhitha

@niverajkumar,
I reproduced the problem with creating individual text boxes when adding the PDF document to PowerPoint presentation.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-43871

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi team,

Is there any updates on this issue?

Thanks,
Nivedhitha Rajkumar

@niverajkumar,
Unfortunately, the issue is still open. We apologize for any inconvenience.

Hi Team,

Would like to know if this issue has been resolved?

-Nivedhitha

@niverajkumar,
I’ve requested information from our developers for you. We will let you know soon.

@niverajkumar,
The SLIDESNET-43871 issue has been planned to be resolved in Aspose.Slides for .NET 23.9. This release will be published in the second half of September. Thank you for your patience.

@andrey.potapov
Hi,

I’d like to know if this issue fixes have been released yet. If not, may I know the date that this fix would get published?

-Nivedhitha

@niverajkumar,
As far as I can see, the fix is still under review and will be included in Aspose.Slides for .NET 23.10. This release will be published in the second half of October. We apologize for any inconvenience.

Hi @andrey.potapov,

I’d like to know if this fix was completed. May I know if there are any updates on this?

Thanks,
Nivedhitha

@niverajkumar,
I’ve requested information from our developers for you. We will let you know soon.

@niverajkumar,
Thank you for your patience. An issue solution is under review and the current implementation requires improvements. We increased the issue priority and will try to include a fix in version 24.1. We apologize for any inconvenience.

Thanks @andrey.potapov. May I know when can I expect the release of version 24.1?

  • Nivedhitha

@niverajkumar,
Aspose.Slides for .NET 24.1 will be published in the second half of January 2024.

The issues you found earlier (filed as SLIDESNET-43871) have been fixed in Aspose.Slides for .NET 24.1 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.

Hi team,

We tried testing the same flow with Aspose.Slides 24.1 & Aspose.Words 24.1 versions. But the issue still persists. Can you please let me know if we’re missing something?

Thanks,
Nivedhitha