Hi,
I am using following code to add graph to a page. Let me know what is wrong with the code that any property is not reflected in generated pdf except width and height.
Aspose.Pdf.Page page = pdfDocument.Pages.Add();
page.PageInfo = new Aspose.Pdf.PageInfo
{
IsLandscape =false,
Width = Aspose.Pdf.PageSize.A4.Width,
Height = Aspose.Pdf.PageSize.A4.Height,
};
var root = new Aspose.Pdf.Drawing.Graph(100, 100)
{
GraphInfo = new GraphInfo
{
Color = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.RosyBrown),
LineWidth = 50.0f,
FillColor = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.RosyBrown),
},
Title = "Test by Sandeep",
HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Left
};
PdfDocument.Save("Test.pdf");
Regards,
Sandeep