I have an Android application where I’m displaying a PDF using PDFView library PdfViewer. I’ve successfully added a signature manually to the PDF programmatically. Now, I want to detect clicks on this signature area so that when a user clicks on it, I can trigger an action, such as showing a toast message. Since I’m not using link annotations and the signature is added programmatically, I need a method to detect clicks based on coordinates (x, y) within the PDFView.
- Successfully displayed PDF using PDFView library in Android PdfViewer
- Added a signature programmatically to the PDF using PDFBox library PdfBox-Android
- Attempted to detect clicks on the signature area by using coordinates (x, y) within the PDFView.
I expected that when a user clicks on the area where the signature is added in the PDF displayed using PDFView, a toast message would be shown.