TIF and TIFF Conversion to PDF generates garbage data

Hi. I am using aspose words to convert .tif and .tiff files to PDF.

var pdfDoc = new com.aspose.words.Document(new java.io.ByteArrayInputStream(qie.base64DecodeToBytes(<base64>)));

PdfSaveOptions = new com.aspose.words.PdfSaveOptions();
PdfSaveOptions.setSaveFormat(com.aspose.words.SaveFormat.PDF);
PdfSaveOptions.setTempFolder(channelCache.getValue('PATH_DOC_OUT'));
     
pdfDoc.save(path, PdfSaveOptions);

The code executed without error, but the output file contains junk data.

Am I using the correct library or perhaps missing some code?

@swy TIFF is an image format and is not directly supported by Aspose.Words as load format. but you can convert TIFF to PDF using Aspose.Words by inserting image into the document. Please see our documentation to learn how to convert images to PDF:
https://docs.aspose.com/words/java/convert-a-document-to-pdf/#convert-an-image-to-pdf