This is an archived forum post. The information may be outdated. Contact us if you have any questions.
Dim client As New pdfcrowd.Client("xxx", "xxx") Dim html As String = _ '"<html><body>" & _ "<img id=""image1"" " & _ "src=""wfmBarCode.aspx?code=1234567890123456789012345678901234567890&mode=code25&text=1"" " & _ "style=""border-width:0px;position:absolute;top:300px;left:10px;"" />" & _ "<img id=""image2"" " & _ "src=""~/App_Handlers/hdlGetImages.ashx?TableName=tbCompany&Id=1"" " & _ "style=""border-width:0px;position:absolute;top:400px;left:10px;"" />" & _ "</body></html>" Dim fs As New FileStream(HttpContext.Current.Server.MapPath("html.pdf"), FileMode.Create, FileAccess.ReadWrite) client.convertHtml(html, fs) fs.Close()
<img src=""wfmBarCode.aspx?code=123....""
<img "src=""http://yourdomain.com/wfmBarCode.aspx?code=123....""
$ curl -I http://www.eagleeyeweb.net/dev/STAR/images/cover-header-2.jpg HTTP/1.1 401 Authorization Required Date: Mon, 11 Jul 2011 08:33:01 GMT Server: Apache WWW-Authenticate: Basic realm="Restricted Area" Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1
http://username:password@www.eagleeyeweb.net/dev/STAR/images/cover-header-2.jpg