Hi
I have a page on which I generate a load of html which is used in a html email.
Here is a bit of the code ...
Because of the problems getting the email to look the same in various email clients, I need to convert that chunk of html to a pdf - so I can create the pdf on the fly, save it and attach it to the email.Code:MessageHeader = "<html>"; MessageHeader += "<head>"; MessageHeader += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />"; MessageHeader += "<title>Email from Customer Support</title>"; MessageHeader += "<style type=\"text/css\">"; MessageHeader += "html, body { margin:20px; border:0; padding:0; text-align:center; }"; MessageHeader += "body {"; MessageHeader += "font-family: arial, san-serif, Verdana;"; MessageHeader += "font-size: 12px;"; MessageHeader += "text-align: left;"; MessageHeader += "}"; MessageHeader += "</style>"; MessageHeader += "</head>"; MessageHeader += "<body>"; MessageHeader += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:800px;background-color:white\">";
Can anyone suggest a simple pdf generator that will just take a chunk of html and create a pdf from it? The ones I have looked at so far have what looks like a steep learning curve with hundreds of features I don't need.
Thanks for any suggestions.




Reply With Quote