Hello,
We’re trying to convert the HTML to PDF. And we’re applying the top & bottom margin for header and footer but in our document there is no header on first page. so can you please guide how we can remove the top margin from the first page?
Aspose.Pdf.HtmlLoadOptions objLoadOptions = new Aspose.Pdf.HtmlLoadOptions(basePath);
objLoadOptions.PageInfo.Margin = new MarginInfo(0, 72, 0, 72);
objLoadOptions.PageInfo.Height = 792;//11 inch
objLoadOptions.PageInfo.Width = 612;//8.5 inch
objLoadOptions.PageInfo.IsLandscape = false;
objLoadOptions.IsEmbedFonts = true;
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(new MemoryStream(Encoding.UTF8.GetBytes(body)), objLoadOptions);