Sending html file through SendLetterAndAddressV2
I am using SendLetterAndAddressV2 and sending html.
Here is a piece of my code:
byte data = Encoding.ASCII.GetBytes(html);
PostalWSSimpleSoapClient postalMethods = new PostalWSSimpleSoapClient(_endpointName);
int responseId = postalMethods.SendLetterAndAddressV2(_userName, _password, description, "html", data,
mode , address.AttentionLine1, address.AttentionLine2, address.AttentionLine3, address.CompanyName,
address.AddressLine1, address.AttentionLine2, address.City, address.State, address.ZipCode, address.Country);
in html variable I have a simple string like this:
<html> <body> <table width="300" height="400" style="background:Gray;"> <tr> <td> <img width="150" height="150" src="https://XXXX/XXX/XX/XXX/3881"/> </td> </tr> </table> </body> </html>
I get it processed successfully but when I try to view it as pdf doc in CP I see the blank page.
Am I doing something wrong? How can I see my html doc rendered in pdf file?