Optimize PDF - Remove Text that is not visible

I have an application that utilizes multiple pdf documents, adds them as PdfPageStamp objects (with margins that clips some of the original content) to a single pdf

The application works as designed, the resulting pdf’s appear to contain invisible text objects that are outside of the clipping margins.

Is there a way to remove the invisible text objects (Optimization)?


We are afraid that removing invisible or out of boundary text is not yet supported in the API. However, please provide a bit more details about your use case and share sample code snippet with sample file(s). We will test the scenario in our environment and address it accordingly.