TIFF file conversion

Hello
I came across a similar issue with my tiff file
Api version is 20.8, .net

Link to file: https://drive.google.com/file/d/1AITox5rJXzwBdPjdwsG9zM8ANJci-gII/view?usp=sharing

Also I noticed that I can’t convert this file on group doc demo, convert button is disabled


This Topic is created by Atir_Tahir using Email to Topic tool.

@YuliaF

Could you please specify the output file format? We can convert the provided TIFF to PDF/Word without any issue.

The output file format is pdf. I attached a screen from loading this file in Online File Conversion | Free GroupDocs Apps

MicrosoftTeams-image (1).png (64.8 KB)
We convert in this way:

    Stream document = GetDoc();

    using (var fileConverter = new Converter(() => document))
                            {
                                var convertedDocumentStream = new ConvertedDocumentStream((converted) =>
                                {
                                    converted.CopyTo(result);
                                    converted.Dispose();
                                });
                                 fileConverter.Convert(() => new MemoryStream(), convertedDocumentStream, GetPdfOptions());
            }

@YuliaF

We are looking into this scenario. Your investigation ticket ID is CONVERSIONNET-4802.

@YuliaF

This issue is fixed in API version 24.3. Please use following code:

const string source = "sample.tiff";
using (var fs = new FileStream(source, FileMode.Open))
using (var converter = new Converter(() => fs))
{
    var options = new PdfConvertOptions();
    Action<string, FileType, Stream> convertedDocumentHandler = (sourceName, convertedType, converted) =>
    {
        using var result = new FileStream("converted.pdf", FileMode.Create);
        converted.CopyTo(result);
    };

    converter.Convert(() => new MemoryStream(), convertedDocumentHandler, options);
}

The issues you have found earlier (filed as CONVERSIONNET-4802) have been fixed in this update. This message was posted using Bugs notification tool by nikola.yankov