We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

When to use Floating Boxes

Using Aspose.PDF

I need to render a mixture of text and graphics elements at precise positions on the page, this includes control over z-order as well as use of transparency.

It seems text can be positioned, without using a floating box, as can elements within a graph. All this without a floating box, however, I have not tackled z-order or transparency.

It seems however that Floating Boxes are intended to position elements at arbitrary positions so my question is:

When should I use a floating box, what are the pros and cons of using them?

Hi Andy,

Thanks for contacting support.

All the objects inside PDF file are added in Flow layout (Top-Left to Bottom-Right), where as FloatingBox has obsolete positioning and can be placed at any location inside the document. The FloatingBox itself acts as container for paragraph level objects, so if you need to place Text/Image at any location inside document, you can add them to paragraphs collection of FloatingBox and then render the floatingbox at any location inside the document.