Paste Annotation

Product:Pdftron Android Native sdk

Product Version:9.2.1

Please give a brief summary of your issue: How to implement Paset Annotation
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
After clicking the copy annotation in the sub-menu when the user long clicks not getting the option to paste the annotation. How to implement paste annotation?
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

After copying an annotation simply tap on an empty part of the document and select “Paste”. I have included a video:

Thanks,
Andrew.

Hi Andrew,

I am using PdfViewCtrlTabHostFragment2 and this on long-press popup is not shown,
how to paste it programmatically.
On long press, we need to paste annotation directly without showing any popup.

Hi,

If you would like to paste an annotation programatically you can use the AnnotationClipboardHelper. pasteAnnot
Please see Java code below:

 AnnotationClipboardHelper.pasteAnnot(mPdfViewCtrl.getContext(), mPdfViewCtrl, pageNumber, targetPoint, null);

Please let us know if this solution works for you.

Best,
Eamon

this works as expected, thanks.

Hi

We’re glad to see that you have resolved your issue. Please feel free to contact us if you have any further questions.

Thanks,
Andrew.