pdfSetDiscardClippedText

Discard clipped text.
void pdfSetDiscardClippedText(int discard)
XpdfText normally treats clipped text the same as other text. This can cause problems if the clipped text overlaps other content. If this function is called with a non-zero argument, XpdfText will discard all clipped text.

This setting is different from pdfSetClipText: pdfSetDiscardClippedText completely discards clipped text, while pdfSetClipText adds it back in to the layout.

This setting is global - it applies to all PDF handles.

C:
pdfSetDiscardClippedText(1);
pdfSetClipText