'Saving converted document is already set.' error when converting in .NET

Error ‘Saving converted document is already set.’ occurs when converting any file first as an image and then to PDF.

            using (var conv = new Converter(documentPath))
            {
                SavePageStream getPageStream = page => new FileStream(string.Format("outputConversion{0}.png", page), FileMode.Create);
                var imgOptions = new ImageConvertOptions();
                Convert(getPageStream, imgOptions);
                var options = new PdfConvertOptions();
                Convert("outputConversion.pdf", options);
            }

The error does not occur, when only doing image conversion, or only PDF conversion.
It only occurs when both conversion should be done with the same converter object.
This was working in the past (In version 21.8 I think) and was now tested with 22.6.
Is this a bug or design change?

1 Like

@Clemens_Pestuka

We are investigating this scenario. Your investigation ticket ID is CONVERSIONNET-5344.

1 Like