PDFium Delphi Component Docs

CutSelectedFormTextToClipboard method

Component: TPdfView  ·  Unit: PDFium
Copies and removes the selected text inside the focused editable AcroForm widget

Syntax

function CutSelectedFormTextToClipboard: Boolean;

Description

The method first writes the non-empty native widget selection to the Windows clipboard as CF_UNICODETEXT, then removes that selection through PDFium's form editor

It returns True only after the clipboard accepts the text and the replacement is issued

The field is left unchanged when clipboard access fails, which gives the operation transactional clipboard-first behaviour

Remarks

Example

if PdfView1.SelectAllFormText then
  PdfView1.CutSelectedFormTextToClipboard;

See Also

CopySelectedFormTextToClipboard, PasteFormTextFromClipboard, SelectAllFormText, FormUndo