We used below html as input to generate the pdf :
Hi Saurabh,
any limitation. Please also check license implementation details.
Hi,
Hi Saurabh,
smahajan:
If needed we can share the sample visual studio solution with you.
Hi Saurabh,
string testStr = " Test for
Inline style and CSS support <p
style=“text-align: center; font-size: 15px;”><span
style=“background-color:yellow;”>This text has yellow background
color and is center aligned.
style=“text-align: center; font-size: 15px;”>This
text has no background color and is center
aligned.";<o:p></o:p>
byte[] inputBytes = Encoding.UTF8.GetBytes(testStr);
MemoryStream inputStream = new MemoryStream(inputBytes);
// load HTML file
Document doc = new Document(inputStream, htmloptions);
doc.Save(myDir+"HTMLtoPDFDOM.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Hi,
We used TextStamp the way described here. But this does not handle html correctly and outputted it as string on the pdf.
Hi Saurabh,
Hi Saurabh,
string outFile = “out.pdf”;<o:p></o:p>
Document doc = new Document();
Helper.SetLicense();
Page page = doc.Pages.Add();
HtmlFragment fragment = new HtmlFragment("Test html");
page.Paragraphs.Add(fragment);
doc.Save(outFile);
The issues you have found earlier (filed as PDFNEWNET-35804) have been fixed in Aspose.Pdf for .NET 9.5.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(10)