Upgrade with new apose liabrary to 24.9.0 leads to right margin issue in PDF

@mayurih Sure, you can pass HTML string. The code example reads HTML content from the file just for demonstration purposes.

can u give one example of how to pass html string while creating htmldoc in memory

@mayurih You can use code like the following:

string html = File.ReadAllText(@"C:\Temp\in.html");

Document htmlDoc;
using (MemoryStream htmlStream = new MemoryStream(Encoding.UTF8.GetBytes(html)))
    htmlDoc = new Document(htmlStream);