Hi,
When I use Aspose.Imaging and convert a PNG to PDF using below code
PngImage pngImage = new PngImage(bais);
com.aspose.imaging.imageoptions.PdfOptions exportOptions = new
com.aspose.imaging.imageoptions.PdfOptions();
exportOptions.setPdfDocumentInfo(new PdfDocumentInfo());
pngImage.save(os, exportOptions);
I see that Aspose Imaging creates a temp folder in the below path
C:\Users\SushmaRaghupathi\AppData\Local\Temp\Aspose.Imaging
Is there a way I can change this? I see that in Aspose.words we can change it using java temp directory, the same applies here also? Is this possible in Imaging ?
System.setProperty(“java.io.tmpdir”, “D:/tmp”);
setLicense();
Also, what if we do not want to use java temp dir ? Can we give any other specific location?