@SICRIF
We used the below code snippet according to your original work flow as described in your first post:
com.aspose.words.Document doc = new com.aspose.words.Document(dataDir + "Sample_21.1.docx");
PipedInputStream is = new PipedInputStream();
PipedOutputStream os = new PipedOutputStream(is);
doc.save(os, com.aspose.words.SaveFormat.PDF);
com.aspose.pdf.Document pdf1 = new com.aspose.pdf.Document(is);
// You can initialize another existing PDF below using input stream as well
com.aspose.pdf.Document pdf2 = new com.aspose.pdf.Document();
pdf2.getPages().add();
pdf1.getPages().add(pdf2.getPages());
pdf1.save(os);
//Open document
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(is);
com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(300);
com.aspose.pdf.devices.TiffSettings tiffSettings = new com.aspose.pdf.devices.TiffSettings();
tiffSettings.setCompression(com.aspose.pdf.devices.CompressionType.CCITT4);
tiffSettings.setDepth(com.aspose.pdf.devices.ColorDepth.Format4bpp);
tiffSettings.setSkipBlankPages(true);
tiffSettings.setIndexedConversionType(com.aspose.pdf.devices.TiffSettings.IndexedConversionType.Pixelated);
com.aspose.pdf.devices.TiffDevice tiffDevice = new com.aspose.pdf.devices.TiffDevice(2480, 3508,resolution,tiffSettings);
tiffDevice.process(pdfDocument,1,1,os);
We noticed that the code kept running for more than 10 minutes and did not generate any output. We need to further investigate the scenario and for the purpose, an investigation ticket as PDFJAVA-40205 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.