How to Create PDF Annotations Using CPDFReaderView #10
Unanswered
youna12345
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Note: Creating annotations in a PDF using the ComPDFKit PDF SDK for Android can be divided into 2 parts:
Currently, the ComPDF Guides documentation only covers how to create annotations programmatically. However, many customers have expressed interest in the ability to draw annotations by swiping on the screen using CPDFReaderView. Today, we are providing a complete solution to address this need:
Solution
Based on the API usage guide we provide, you can implement the ability to add annotations by swiping on the screen with a finger in your Android application:
After displaying a PDF using CPDFReaderView following this guide, please follow the steps below to enable annotation via finger swipe:
Next, we'll take the example of adding a highlight annotation to text on a PDF page:
TouchMode.ADD_ANNOT
to enable touch events for adding annotations.By following the steps above, you can swipe over text areas on the screen to add highlight annotations.
Beta Was this translation helpful? Give feedback.
All reactions