Xml+xslt to PDF conversion taking too long

I am contacting from Siemens, and our order id is Order ID #230221225438.

I am trying to convert xml+xslt to pdf., and we are using aspose total java APIs for the same.
The conversion is taking more than an hour. Using aspose C++ API, the conversion was much faster, it was completed in 1 min. I am attaching both the code snippets and sample files.
Please help us to reduce the file generation time.

Java Code snippet:

import com.aspose.pdf.*;
import com.aspose.pdf.XslFoLoadOptions;

public class PanelAssetConversion {

    public  void convertPanelAsset(String xmlFile,String xsltFile, String Output) throws Exception {
        com.aspose.pdf.License pdfLicense = new com.aspose.pdf.License();
        // Instantiate XslFoLoadOption object
        System.out.println("Loading options....\n");
        XslFoLoadOptions options = new XslFoLoadOptions(xsltFile);
        // Create Document object
        System.out.println("Providing input xml....\n");
        Document pdfDocument = new com.aspose.pdf.Document(xmlFile, options);
        System.out.println("Saving pdf....\n");

C++ code snippet:

void convertPanelAsset( System::String xmlFile, System::String xsltFile, System::String pdfFile )
        std::cout << "Generating PDF from xml...\n";
        // Instantiate XslFoLoadOption object
        auto options = MakeObject<Aspose::Pdf::XslFoLoadOptions>( xsltFile );
        // Create Document object
        auto pdfDocument = MakeObject<Aspose::Pdf::Document>( xmlFile, options );

        pdfDocument->Save( pdfFile );
    catch ( System::Exception ex )
        std::cerr << ex.what();

PanelAsset.zip (5.6 KB)

Jancirani C


Can you attach the Xml and XSDT in a zip please?

Attached PanelAsset.zip contains xml and xslt files.

Jancirani C

I tried the code in c# and java.

C# threw a null exception immediately.

Jav has been running for 10 minutes and not finishing.

I see the issue I will be creating a bug for the dev team.

The code snippet is in C++ and Java.
Can you please try with C++?

Also, please let me know how soon can it be rectified?
We have a customer demo in 2 weeks.

Jancirani C


Sadly I cannot tell you what else to do since I am not part of development team. They have their own time and schedule.

I do not have a C++ environment to run your code sadly.

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): PDFNET-53875

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.