JPG file transformed to a empty PDF file

Hello,

We have a problem to convert the jpg file (seejpg attached file) to PDF, the result give us an empty PDF file (see PDF attached file). It’s very strange and we don’t find why only for this file it doesn’t work.

For information, I use the follwing parameters you sent me last time:

var pdfDocument = new Aspose.Pdf.Document();
var pdfPage = pdfDocument.Pages.Add();
            
var image = new Aspose.Pdf.Image();
image.File = myDir + "Test.jpg";

pdfPage.Paragraphs.Add(image);

pdfDocument.Save(myDir + "Test-out.pdf"); 

2609189_Screenshot_20230904_134330__04-09-2023 13-44-35-350.jpg (231.9 KB)

2609189_Screenshot_20230904_135151__04-09-2023 13-52-29-603.jpg (185.8 KB)

2678197-2609189-380-a1P3X00000Q68KBUAZ-20231005095711.JPG.pdf (1.4 KB)

2678197-2609189-380-a1P3X00000Q68LjUAJ-20231005095711.JPG.pdf (1.4 KB)

Can you please help ?

Thank you in advance for your support.

@dlan

Would you please try using 23.9 version of the API and if you still face any issues, please let us know. We will log an issue in our issue tracking system and share the ID with you.

Hello Ali,
Indeed, with the 23.9 version of the API it works but we have a license problem.
Is this possible to have a new license to use this API ?

Error message below:

With our current license we have this error message,
java.lang.IllegalStateException: The subscription included in this license allows free upgrades until 10 Jun 2023, but this version of the product was released on 27 Sep 2023. Please renew the subscription or use a previous version of the product.
at com.aspose.pdf.l10h.lI(Unknown Source)
at com.aspose.pdf.l10h.lI(Unknown Source)
at com.aspose.pdf.License.setLicense(Unknown Source)
at csf_horizon.convert_topdf_0_5.Convert_ToPdf.tJava_3Process(Convert_ToPdf.java:624)
at csf_horizon.convert_topdf_0_5.Convert_ToPdf$2.run(Convert_ToPdf.java:1743)

@dlan

You need to upgrade your license subscription in order to get a new license and use the latest version of the API. Please note that we provide support on the basis of the latest version of the API as the issues reported for older versions are resolved in higher and the latest version of the API. You can contact our Sale Team in order to renew your subscription. Also, you can obtain a 30-days free temporary license in order to test the latest version of the API against your application. Once you are sure that everything is working fine, you can finally renew your license.