Aspose PDF Java 20.7 has internal exceptions when converting to TIFF

I converted a Japanese pdf to TIFF with Aspose Java PDF 20.7 and it threw an Aspose exception internally. However, the same piece of code worked fine with 20.6

	public static void convertAllPDFPagesToTIFFImages() throws IOException {
		// Open document
		Document pdfDocument = new Document("japanese_text.pdf");
		// Create stream object to save the output image imageStream = new"japanese_text.pdf.tiff");
		// Create Resolution object
		Resolution resolution = new Resolution(300);
		// instantiate TiffSettings object
		TiffSettings tiffSettings = new TiffSettings();
		// set the compression of resultant TIFF image
		// set the color depth for resultant image
		// skip blank pages while rendering PDF to TIFF
		// Create TiffDevice object with particular resolution
		TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);
		// Convert a all pages of PDF file to TIFF format
		tiffDevice.process(pdfDocument, imageStream);
		// Close the stream

japan_text.pdf (197.5 KB) (2.2 KB)


We were unable to notice any issue while testing your code snippet with your file and Aspose.PDF for Java 20.7. Would you kindly share a sample console application that is able to replicate the issue? We will again test the scenario in our environment and address it (157.9 KB)

@asad.ali just run the static method that I posted. It should throw an exception.


We tested using the static method as well and were unable to notice the exception. Would you please share a sample console application with us which is able to reproduce the error. Please try to test the scenario with Aspose.PDF for Java 20.8 as well before sharing the sample application.