I have found out there seems to be a bug (.net) when outputting text to the PDF with a margin.
When using the margin-left in the CSS for example:
p.subheader2
{
font-family: Calibri;
font-size: 12pt;
text-align: left;
margin-left: 40px;
}
My Road, Manchester, My Postcode
Everything seems to be work fine, however as soon as you start using or for new lines then the margins don’t work (but it works in web browsers). For example:
p.subheader2
{
font-family: Calibri;
font-size: 12pt;
text-align: left;
margin-left: 40px;
}
My Road, Manchester, My Postcode
At the moment I can sort of work around it by closing the p tag and putting the after it but it is a pain having declare a new
Thanks for your inquiry. I’ve tested the scenario with latest version of Aspose.Pdf for .NET, I manged to observe line break tag issue with left margin settings and logged it as PDFNEWNET-35844 in our issue tracking system for further investigation and resolution. We will notify you via this forum thread as soon its resolved.
Thanks for your feedback. I’m afraid I’m unable to found image styling issue with line break tag, both images are rendered in center. Can you please confirm your Aspose.Pdf for .NET API version and also share input/output documents? So we will investigate the issue and will provide you information accordingly.
Thanks for your patience. Your reported issue has been fixed in new DOM approach of HTML to PDF conversion. Please check following documentation link for details and code snippet.