Colored Pdf is given as input for converting it to Tiff. The generated Tiff is colored in windows OS(used Spring Project in eclipse). But the same code when deployed in AWS ECS (linux environment), it is not working as expected. The generated Tiff is black and white. MSfonts is also installed in the container.
Following is the code used for Pdf to tiff conversion:
bais = new ByteArrayInputStream(FileUtils.readFileToByteArray(inputPdf));
pdfDocument = new Document(bais);
int numOfPages = pdfDocument.getPages().size();
resolution = new com.aspose.pdf.devices.Resolution(125);
com.aspose.pdf.devices.TiffSettings tiffSettings = new com.aspose.pdf.devices.TiffSettings();
// tiffSettings.Brightness = .9F;
tiffDevice = new com.aspose.pdf.devices.TiffDevice(resolution, tiffSettings);
baos = new ByteArrayOutputStream();
tifBytes = baos.toByteArray();
Input PDF sample:
inputPdf_7001120210323200020001.pdf (718.3 KB)
Thanks in advance for valuable response.
Looking forward for a solution as soon as possible.