PDF-to-PPTX in Java: Conversion Error - com.aspose.slides.exceptions.ArgumentException: Parameter Is Invalid

When converting the PDF and then to PPTX, report is failed with ArgumentException.
Aspose version:
implementation ‘com.aspose:aspose-pdf:26.1’
implementation ‘com.aspose:aspose-slides:26.2:jdk16’

Stack Trace:

com.aspose.slides.exceptions.ArgumentException: Parameter is invalid
at com.aspose.slides.internal.d3g.u1.g2(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.u6l.g2(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.u6l.n3(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.v5l.n3(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.v5l.n3(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.SlideCollection.n3(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.SlideCollection.addFromPdf(Unknown Source) ~[aspose-slides-26.2-jdk16.jar:26.2]
at com.aspose.slides.ISlideCollection$addFromPdf.call(Unknown Source) ~[?:?]

Code Sample:

import com.aspose.cells.*
import com.aspose.pdf.*
import com.aspose.pdf.DocSaveOptions
import com.aspose.pdf.PptxSaveOptions
import com.aspose.slides.Presentation
import com.aspose.slides.SlideSizeScaleType
import us.cgt.common.template.PdfService

import java.io.FileInputStream

import com.aspose.pdf.Document
import com.aspose.pdf.PptxSaveOptions

class PowerPointService {
    Presentation createPresentationFromPdf(String pdfLocation) {
        Integer width = 792
        Integer height = 612

        Presentation presentation = new Presentation()
        presentation.slides.addFromPdf(pdfLocation);
        presentation.slides.removeAt(0)
        presentation.slideSize.setSize(width, height, SlideSizeScaleType.EnsureFit)

        return presentation
    }

}

def service = new PowerPointService()


def ppt = service.createPresentationFromPdf( "/Users/nitesh.kc/Downloads/Lorem ipsum.pdf")

ppt.save("/Users/nitesh.kc/Downloads/Lorem ipsum.pptx", com.aspose.slides.SaveFormat.Pptx)

The input PDF and split PPT export (generated by catching ArgumentException) has been attached.
Input.zip (75.4 KB)

SplitPagesPPT.zip (60.1 KB)

@NiteshCG,
Thank you for reporting the issue. I have reproduced the problem where an ArgumentException is thrown when importing the PDF document into a presentation. We apologize for any inconvenience caused.

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): SLIDESJAVA-39825

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.