Some test text!

menu
Text Editkeyboard_arrow_down

Text edit (beta)

WebViewer 7.1 adds support for an experimental text edit feature in the UI which allows you to edit text directly on PDF files. After selecting text a button appears in the text selection menu which allows you to change the text.

Enable text editing feature

This feature requires the WebViewer Full API , which can be enabled by passing the option fullAPI: true into the WebViewer constructor and you also need to enable the text edit button in the UI.

WebViewer({
  fullAPI: true,
  // other options
}, document.getElementById('viewer'))
.then(() => {
  // Enable text edit button
  instance.enableElements(['editTextButton']);
});

You will see the text edit button after selecting text

Text Editing Button

Please note that the text edit feature is still experimental. Known issues are:
  • If the updated content takes more space than the original content then extra content will be removed
  • The vertical alignment of the updated content may not match the original text

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.