Hi,
Usually the port does not matter. If the port Url the converter see and the port the custom see are different, then you will either need to set BaseUrl manually, or configure your server such that your server will still serve on the same port as the customer sees it.
For example, if user enter "http://www.yoursite.com/page1.aspx", but your web server actually only handles
http://www.yoursite.com:1234/page1.aspx", then you have two options:
1. Configure your web server so that it can handle both "http://www.yoursite.com:1234/page1.apsx" and "http://www.yoursite.com/page1.aspx". This way if the customer enters a Url, it gets redirect and handled through port 1234, but the converter still goes through port 80;
-- OR --
2. Set HtmlToPdf.Options.BaseUrl to "http://www.yoursite.com:1234" in your code. At runtime, the converter use BaseUrl to form the final Url in your page. For example, if you have something like "<style href='styles.css' />", then the converter use BaseUrl to resolve "styles.css" and use "http://www.yoursite.com:1234/styles.css" as the final Url to contact your web server;
Option 1 would be the preferred method since it does not require you to change your code. Option 2 would require you to change your code to explicitly set BaseUrl (I believe you would set it in your action method).
Hope this helps. Please let us know how it works out.
Thanks!