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

Free Support Forum - aspose.com

Z-index when creating PDF

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?

Best Regards


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’s good to know that it is working on your end. Please feel free to let us know in case you need further information.