Issue with ExportFileToPdf

Hi,
I have just tried the new ExportFileToPdf function and it seems to have problems with images(PNG JPG). I get a watermark when I try to display these newly generated pdfs.
image.png (149.5 KB)

Is the conversion using the new function faster than using this approach?:
var viewer = new Viewer();
viewer.OpenDocument(pdfInput, fileType, config);
viewer.ExportToPdf();

@mczernia,

To assist you better, please provide the following information:

  1. Which version of .NET are you currently using? (.NET Framework, .NET Standard/Core or .NET 6)
  2. Could you also specify the version of Doconut you are using?

Thanks for your help.

Hi,
we are using .NET Framework and we use the Doconut Version 24.8.0

Kind regards,
Markus

@mczernia,

I have been trying to replicate the problem but without success. To better understand the issue, could you please provide an example project that you are using to call this new function? This could help me better understand the context and configuration of your project and the way you are calling this function so I can replicate the error.

Regarding your question about speed, the new function uses a different rendering engine, which in many cases is faster and more efficient. It is a more modern solution, and we’ll continue to maintain and improve this function going forward.

Thank you for your help.