Welcome Guest Search | Active Topics | Sign In | Register

Using HtmlToPdf.ConvertHtml CommandLine fails Options
Janice
Posted: Friday, March 14, 2025 11:41:39 AM
Rank: Member
Groups: Member

Joined: 2/26/2009
Posts: 19
Hi,
We have been using this library for over 12 years(?). We use the pdf library in many products. Some web asp.net & mvc forms and some commandline. Recently we upgraded from 23.2.65 to 25.0.86. It is working in the web products, but the command line is giving a "The URL is invalid" error, whereas it worked in the previous version. NOTE: there is no url in the html. I've tried just giving it <html><html> and it still gives the same error, so I think it has something to do with the fact that it is commandline. It is .net 4.8 and running with admin permissions.

Initially, after upgrading, we did have issue with our firewall blocking the eoweb.dll, but that was unblocked.... just giving you any information that I think might be useful as I'm out of ideas myself.

Thanks
eo_support
Posted: Saturday, March 15, 2025 1:57:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,312
Hi,

How do you exactly call HtmlToPdf.ConvertHtml? Can you isolate the problem into a small test application and send the test application to us? See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx

Once we have that, we will look into it and see what we can find.

Thanks!
Janice
Posted: Monday, March 17, 2025 2:56:23 PM
Rank: Member
Groups: Member

Joined: 2/26/2009
Posts: 19
In creating sample program I found what the issue/difference is in the versions. Previously it was ok to specify an empty string as a BaseUrl, but now if you do it will complain about the URL. However, if you leave it as null, it will work fine.
eo_support
Posted: Monday, March 24, 2025 9:52:30 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,312
Thank you very much for the additional information. We will fix this in our next build so that you will be able to specify empty string as BaseUrl again.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.