Table of Contents

Property SkipInvisibleText

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

SkipInvisibleText

Gets or sets a value indicating whether to extract hidden text.

public bool SkipInvisibleText { get; set; }

Property Value

bool

true to do not extract hidden text; false otherwise.

Remarks

Default value: false.

This property allows to skip text when:

  • Text is rendered in the mode that produces no visible output (like NeitherFillNorStroke).
  • Text is drawn outside of active clip region.
  • Text is drawn on a hidden layer.
  • Text is drawn on a hidden control or annotation.

Note that there are other ways to hide text in PDF document. For example, text can be overlapped by other page objects (e.g. by image, form control or filled rectangle). Or text can be drawn with the same color as background (e.g. white text on white background).

SkipInvisibleText property does not allow to skip text in such cases. Extract and handle page objects manually to skip text hidden with such techniques. Look at "Pages and Navigation -> Extract text, paths and images" sample for more detail.