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