file_example_TIFF_5MB.zip (2.0 MB)
Hi,
We have purchase temporary license for product groupdocs.conversion and use below code to convert all the mention format into pdf.
Converter converter = new Converter(filepath.toString());
PdfConvertOptions options = new PdfConvertOptions();
converter.convert(path.toString(), options);
It works fine for all format but for one format .tiff and that too for this specific file we are getting black image after converting to PDF, technical team share the code to convert .tiff to jpeg and from .jpeg to .pdf but we need some generic code which will work for all format, other .tiff file works fine its issue with this file only could you please check and let us know, we have raise invoice for purchasing of this product. Below is the temporary code provided by technical team.
ImageLoadOptions loadOptions = new ImageLoadOptions();
loadOptions.setFormat(ImageFileType.Tiff);
Converter converter = new Converter(“file_example_TIFF_1MB.tiff”, loadOptions);
ImageConvertOptions saveOptions = new ImageConvertOptions();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
converter.convert(outputStream, saveOptions);
InputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
converter = new Converter(inputStream);
PdfConvertOptions options = new PdfConvertOptions();
converter.convert(“Output.pdf”, options);
Attach is the file which is giving issue.
Thanks
Vaibhav.Vfile_example_TIFF_5MB.zip (2.0 MB)