Hi all,
Hi Laertis,
I
have tested the scenario and as per my observations, when using latest release of Aspose.Pdf for Java 10.4.0, the TIFF image is properly being converted to PDF format. However I have observed that an exception is being generated when converting JPEG EXIF to PDF format. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-34967. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>
We apologize for your inconvenience.
[Java]
//Open document
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document();
com.aspose.pdf.Image img = new com.aspose.pdf.Image();
img.setFile("c:/pdftest/JpgEXIFDocument.jpg");
pdfDocument.getPages().add().getParagraphs().add(img);
pdfDocument.save(<span style=“font-size:10.0pt;line-height:115%;font-family:Consolas;mso-fareast-font-family:
“Malgun Gothic”;mso-fareast-theme-font:minor-fareast;color:#2A00FF;mso-ansi-language:
EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA”>“c:/pdftest/JpgEXIFDocument.pdf”);
Hi Laertis,
Hi Nayyer,
Hi Laertis,
Hi,
Hi Laertis,
Hi Tilal,
Hi Laertis,
HI,
How to png image to convert TGA file format…
I have observed your requirements and regret to share that at present the support for PNG to TGA format is unavailable in API. An issue with ID IMAGINGJAVA-1468 has been created in our issue tracking system to further investigate the requirements. This thread has been linked with the issue so that you may be notified once the support will be available.
You can please try using latest Aspose.Imaging for Java 20.9 on your end using following sample code to convert PNG to TGA format.
Loading of the PNG image and saving it as a TGA image.
try (RasterImage image = (RasterImage)Image.load("test.png"))
{
image.save("test.tga", new TgaOptions());
}
Loading of the PNG image, conversion of it to the TgaImage and saving as a TGA image.
try (RasterImage image = (RasterImage)Image.load("test.png"))
{
try (TgaImage tgaImage = new TgaImage(image))
{
tgaImage.save("test.tga");
}
}