layout.textEditing
Where Edit Text types. Inline editing types on the page itself and draws its own caret from the PDF's glyph metrics. That is what makes a click land on exactly the character you aimed at on a desktop — and exactly what a fingertip cannot drive on a line a few millimeters tall, with the on-screen keyboard covering the words being typed. On a narrow or touch layout the tool opens a bottom sheet instead: the block's text goes into a real, visible textarea, so the browser draws a native caret and provides native selection handles, and the sheet tracks the visible viewport so it always sits above the keyboard.
TextEditSurfacedefault 'auto'
Values
'auto'Default. Sheet on anarrowortinycontainer, or any coarse pointer. Inline everywhere else.'inline'Always type on the page.'sheet'Always use the bottom sheet, at any size.
Example
textEditingTypeScript
new PDFViewer(container, doc, { layout: { textEditing: 'auto', // 'auto' | 'inline' | 'sheet' }, });