Removing elements from a PDF page

Q: I need to remove all text elements from a page, but leave all other
elements in place. Is there support in PDFTron for removing elements
from a page? So far, all I have been able to see as a possibility is
to use ElementBuilder to copy the elements and then ElementWriter to
write them to a new page. This seems inefficient. The whole problem I
am trying to solve is to remove the text from the page, rasterize the
rest of the elements into an image, then add the image and text to a
new page.
A: You may want to take a look at ElementEdit sample (http:// This sample shows
how to remove all images from a page, however it should be very simple
to alter the code to remove all text instead of images. Despite the
appearances the whole operation should be fairly fast.