Skip to main content

debug_text_objects

Function debug_text_objects 

Source
pub fn debug_text_objects(bytes: &[u8], index: i32) -> Vec<DebugTextObject>
Expand description

Diagnostic: every text object on page index, each tagged visible/invisible (via the object-level FPDFTextObj_GetTextRenderMode, which — unlike the per-character render-mode API — is available on the default pdfium binding). A hidden duplicate text layer shows up as invisible objects repeating the visible text. Used by the dump_render_modes example.