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");
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)
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.