Closed jorussell1 closed 1 month ago
Thanks for raising the issue. I discovered the issue yesterday and have a fix. One of the command line options to Edge/Chrome have changed suddenly from "--headless to --headless=old". Also, It looks that "--headless=old" option will eventually be obsoleted in the future and "--headless=new" should be used.
I will need to make a new release to resolve the issue. It will take probably more than few days unfortunately because I am currently prototyping support for other languages than English. I let you know when I have a new load.
There is work around until new load is available if you are interested. Please follow the below steps:
Select "File->Print Config" and then select "User Defined Script" option.
Update the last part of path to script as follow (path will differ in your case): From: G:\C\mboxview-releases\mbox-viewer.exe-v1.0.3.44\scripts**HTML2PDF-single-wkhtmltopdf.cmd To: G:\C\mboxview-releases\mbox-viewer.exe-v1.0.3.44\scripts\HTML2PDF-single-chrome.cmd**
Update the following line in the HTML2PDF-single-chrome.cmd file in the scripts folder as follow:
call "%CmdPath%" --headless=old --disable-gpu --print-to-pdf-no-header --no-pdf-header-footer --print-to-pdf="%PDFdir%\%HTMLNameBase%.pdf" "%HTMLFilePath%"
Insert "=old" after "--headless"
Let me know if you are willing to make temporary change and whether it worked for you.
I see typo in my comment. The "\" was lost. Correction below:
Update the last part of path to script as follow (path will differ in your case): From: G:\C\mboxview-releases\mbox-viewer.exe-v1.0.3.44\scripts\HTML2PDF-single-wkhtmltopdf.cmd To: G:\C\mboxview-releases\mbox-viewer.exe-v1.0.3.44\scripts\HTML2PDF-single-chrome.cmd
@jorussell1 I released v1.0.3.45 to resolve the issue you reported. Thanks for detailed description of the problem.
Hope v1.0.3.45 works for you.
Thank you for your quick response. That seems to resolve this issue on my machine. I'm going to try it once more on the intended user's machine and then I'll close this issue.
I can't get a pdf to generate. I've tried with Microsoft Edge, Google Chrome, and the custom script; each is broken in its own separate way.
Here's what happens for each method
chrome
edge
Custom script
What I expect to happen
I want it to produce a pdf.