Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Aug 28, 2024 1:59 am

I am trying to use the ChromeHtmlConverter, but the following exception is always thrown:

Code: Select all
System.Exception: Google Chrome exited unexpectedly, {exception}
   at Spire.Additions.Chrome.ChromeHtmlConverter.ConvertToPdf(String input, String outputFile, ConvertOptions options)


When I look in event viewer to find details of the crash there is the following log:

Faulting application name: chrome.exe, version: 128.0.6613.85, time stamp: 0x66c54696
Faulting module name: chrome_elf.dll, version: 128.0.6613.85, time stamp: 0x66c54696
Exception code: 0x80000003
Fault offset: 0x000000000002f0cd
Faulting process id: 0x8168
Faulting application start time: 0x01daf8ecdef6819b
Faulting application path: C:\Program Files\Google\Chrome\Application\chrome.exe
Faulting module path: C:\Program Files\Google\Chrome\Application\128.0.6613.85\chrome_elf.dll
Report Id: b71e4584-841d-4568-9013-6bf0a5bb27d0
Faulting package full name:
Faulting package-relative application ID:


I can't find any log files from Chrome.

How can I debug this issue?
Looking online it seems you can pass command line parameters to Chrome to generate debug logs, but the Spire library is in control of launching the chrome.exe so I can't add these.

Axima
 
Posts: 5
Joined: Wed Nov 27, 2013 12:28 am

Wed Aug 28, 2024 6:36 am

Hi,

Thank you for your message.
I've tested it using Chrome version 128.0.6613.85, but I didn't encounter any errors. Could you please provide your HTML test file or the URL address along with your system information (e.g., Windows 11) so that we can further investigate and test the issue? Your assistance is highly appreciated.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Wed Aug 28, 2024 10:46 am

Hi Doris,

The thing is, it works on some machines and not others, so we really need a way to enable debug logs to see what is going on.

Axima
 
Posts: 5
Joined: Wed Nov 27, 2013 12:28 am

Thu Aug 29, 2024 7:30 am

Hi,

I'm sorry, but we don't have the function of outputting logs at present. I have submitted your requirement to our R&D department, and they will further investigate how to implement it. We will inform you promptly once it's available.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Sun Sep 01, 2024 12:57 pm

Hi Doris,

Thanks for passing that on.
While we wait, what is the next recommended way of converting HTML to PDF?

Axima
 
Posts: 5
Joined: Wed Nov 27, 2013 12:28 am

Mon Sep 02, 2024 9:04 am

Hello,

Thank you for your reply. Apologies for the delayed response due to the weekend.
Indeed, we have another method to convert HTML to PDF, but it also relies on a third-party plugin, and the dependency on the environment is more complex. You can refer to the link below to test if this method works for you. If you encounter any further issues, please feel free to reply.

https://www.e-iceblue.com/Tutorials/Spi ... rself.html

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Thu Sep 05, 2024 11:03 pm

Hi Doris,

Do you have a timeframe on when we will be able to generate debug logs for the ChromeHtmlConverter?

Axima
 
Posts: 5
Joined: Wed Nov 27, 2013 12:28 am

Fri Sep 06, 2024 1:23 am

Hi,

I'm sorry, but as this function utilizes a third-party plugin for Google Chrome, the development team needs more time to investigate whether this feature can be implemented. Unfortunately, we are unable to provide an estimated timeline at this moment. Thanks in advance for your understanding.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Wed Oct 16, 2024 8:39 pm

Hi Doris,

Any updates?

Axima
 
Posts: 5
Joined: Wed Nov 27, 2013 12:28 am

Thu Oct 17, 2024 7:13 am

Hi,

Thanks for your following up.
Our development team has already implemented this feature. Once it passes the tests, we will release a new version and notify you promptly. Thanks for your patience!

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Fri Oct 25, 2024 6:49 am

Hi,

Thank you for your patience.
Glad to inform you we released Spire.PDF 10.10.5, which implemented SPIREPDF-7014. Welcome to download it from the following link and refer to code below to test.

Code: Select all
 ChromeHtmlConverter converter = new ChromeHtmlConverter(TestUtil.ChromiumPath);
converter.Logger = new Logger(logFilePath);
ConvertOptions options = new ConvertOptions();


download: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 353
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.PDF

cron