Free Support Forum - aspose.com

FoatingBox vs Rectangle positioning

In the XML below I have a FloatingBox and a Rectangle. I was expecting these two to line up on top of each other but they do not.

Should these line up? I'm trying to use a combination of Floating boxes (for text) and Rectangles and Lines for other stuff and I'm having problems getting things to line up properly. For now I'll just hide the border for the floating box and draw a rectangle in it's place.

<?xml version="1.0" encoding="utf-8" ?>











Thanks,

Chris

Dear Chris,

Thank you for considering Aspose.

You should control the position of floating box like the example at http://www.aspose.com/Wiki/default.aspx/Aspose.Pdf/StartWithHello.html. And if you want to control the position of the graph instead of render it by Aspose.Pdf, you should use custom position or another floating box for it. I am not sure if I have understood you question exactly. If I have not, please provide a graph to elaborate what you want.