Thanks for contacting support.
We have tested the scenario in our environment using Aspose.PDF for .NET 19.2 and were able to reproduce the issue that you have mentioned. For the sake of correction, we have logged it as PDFNET-46107 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.
We have used following code snippet for testing:
Aspose.Pdf.HtmlLoadOptions objLoadOptions = new Aspose.Pdf.HtmlLoadOptions();
objLoadOptions.PageInfo.Margin.Bottom = 0;
objLoadOptions.PageInfo.Margin.Top = 0;
objLoadOptions.PageInfo.Margin.Right = 0;
objLoadOptions.PageInfo.Margin.Left = 0;
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "InlineAnchor.html", objLoadOptions);
doc.Save(dataDir + "output.pdf");
We are sorry for the inconvenience.