Z-index when creating PDF

Hi,
I use the latest version of Aspose.PDF for .NET… I create a rectangle filled with a color, then I would to print something (usually text) on top of that filled rectangle… unfortunately the text ends up always behind the rectangle…

How do I achieve the correct placement (Z axis) so that the text is on top and visible?
Thanks.

Best Regards
Yahia

@it-yeq

Can you please share the source code and output PDF file so that we may try to reproduce the same on our end.

I experimented a bit more and now I have found a solution which works. Thanks.

@it-yeq

It’s good to know that it is working on your end. Please feel free to let us know in case you need further information.