Welcome to the DynamicPDF Converter for .NET (v3.x) forum

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v3)  /  Re: Welcome to the DynamicPDF Converter for .NET (v3.x) forum

DynamicPDF Converter for .NET (v3) Forum

Posted by a ceTe Software moderator
Welcome to the all-new forum dedicated to DynamicPDF Converter for .NET (v3.x). This forum was released in September 2020 and should be used for any support questions or discussions related to the DynamicPDF Converter for .NET (v3.x) product. This forum will also be monitored by our support staff.  Thanks, ceTe Software Support Team
Hi Team,

I am using Converter.ConvertHtmlString , it's giving error when running this in the debian imaged docker and .net core 3.1.
FYI: I have installed chromium .

Please find below the error:
System.AggregateException: One or more errors occurred. (No process is associated with this object.)
System.InvalidOperationException: No process is associated with this object.

Please suggest.

Thanks
Anup Chaturvedi
Posted by a ceTe Software moderator
Hello Anup,

We are seeing similar behavior in our testing. Our developers are working on a solution and we will include it in our next build.  We will post an update once a new build of product including this feature is released.

Thanks,
ceTe Software Support Team
Posted by a ceTe Software moderator
Hello Anup,

This issue has been fixed in the latest DynamicPDF Converter for .NET (v3.07). You can download latest product from NuGet (Package ID: ceTe.DynamicPDF.Converter.NET) or from our website here.

Also please follow the below steps:

1.        Install chromium.
2.        Please run the chromium with the no-sandbox and disable-gpu tags. Here are the docker commands:
              RUN echo '#!/bin/bash' > chrome
              RUN echo 'chromium --no-sandbox --disable-gpu $@' >> chrome
              RUN chmod +x chrome
3.        Set the static ChromiumProcessPath property of the HtmlConverter class.
4.        Set the temporary directory path

Here is a code sample:

            HtmlConverter.ChromiumProcessPath =  @"/home/hc/chrome";
            ConversionOptions.TemporaryDirectory= @"/home/hc/temp";
            Converter.Convert(https://www.google.com/, "output.pdf");

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 1:24 PM.