I have Temporary License for Aspose.Pdf for .NET which i recieved in mail, i used this for licence with my code as
Aspose.Pdf.License license = new Aspose.Pdf.License();
FileStream myStream = new FileStream(@" C:\Users\Lakdeep\Desktop\WebApplication4\WebApplication4\Aspose.Pdf.lic", FileMode.Open);
license.SetLicense(myStream);
I am not getting full page of my html only getting little view of it.
Please help it’s little urgent
I am creating a pdf from HTML using but i am only getting little view of the pdf.
Aspose.Pdf.License license = new Aspose.Pdf.License();
FileStream myStream = new FileStream(@" C:\Users\Lakdeep\Desktop\WebApplication4\WebApplication4\Aspose.Pdf.lic", FileMode.Open);
license.SetLicense(myStream);
String html = Resource1.index;
// instantiate HtmlLoadOptions object and set desrired properties.
HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.PageInfo.Margin.Bottom = 10;
htmlLoadOptions.PageInfo.Margin.Top = 10;
//Load HTML string
Document doc = new Document(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(html)), htmlLoadOptions);
//Save PDF file
doc.Save(“C://Users//Lakdeep//Desktop//TEST2.pdf”);
// doc.Save(“output.pdf”);
Hi Rajeev,
We are sorry for the inconvenience caused. I have
tested your scenario with shared document and
managed to observe the reported issue. For further investigation, I have logged
an issue in our issue tracking system as PDFNEWJAVA-35563 and also linked your request to it. We
will keep you updated via this thread regarding the issue status.
Best Regards,