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
Welcome to the DynamicPDF Converter for .NET (v3.x) forum
Re: Welcome to the DynamicPDF Converter for .NET (v3.x) forum
Forum member · Mar 1, 2021Hi 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
Re: Welcome to the DynamicPDF Converter for .NET (v3.x) forum
Support · Mar 5, 2021Hello 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
Re: Welcome to the DynamicPDF Converter for .NET (v3.x) forum
Support · Mar 9, 2021Hello 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