Unable to edit annotation notes in ios devices

36 views
Skip to first unread message

muraleek...@multunus.com

unread,
Aug 2, 2016, 1:26:53 PM8/2/16
to PDFTron WebViewer
When trying to add annotation in the pdf viewer, we are unable to edit the initial dummy text in the comment box. The cursor stays at the start of the text and doesn't move. The delete is also not working.

Also is there any way by which we can directly edit the freehand text in the box? Currently users will have to long press, select freehand option, draw the box, select note (which is not apparent), edit the comment and then save. Instead we could short circuit between drawing and saving by making the box an  input field.

Matt Parizeau

unread,
Aug 3, 2016, 3:15:11 PM8/3/16
to PDFTron WebViewer
Hi,

Are you able to reproduce this issue on the PDFTron website, for example this link? https://www.pdftron.com/webviewer/demo/samples/stamp-image/index.html

If you wanted to customize how the notes are edited you could modify what happens when the note button is clicked in MobileReaderControl.js. The relevant code starts at: me.$annotEditPopup.find('#editNoteButton').click(function() {
You could add your own textarea and buttons to control the saving and editing of the note. To read the note text you can call annot.getContents() and to write it you can call annot.setContents('new text').

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Volker Andres

unread,
Apr 11, 2017, 1:46:37 PM4/11/17
to PDFTron WebViewer
Did you find the reason for this beahviour?
Reply all
Reply to author
Forward
0 new messages