How to remove page content using Gembox.Document?


I have one page pdf and want to remove 20 mm top and 20 mm bottom. All text inside of these area must be deleted.

As a result:

I don’t know the text. I want tot remove just area

Tell me please how to do that? thanks


This cannot be done with GemBox.Document, this can be done with GemBox.Pdf.

Please check the Reading text from a specific rectangular area example, you’ll need to use that approach in order to identify the PdfTextContent elements that are inside your targeted area.
After that, you can use the following to remove those elements: