Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11447 Reply

    Zsolt

    Hey,

    I would like to draw the annotations BBox on Android. For this, I did the tutorial and modified the onLoadFinish method this way:
    ` private SimpleDocumentReaderListener listener = new SimpleDocumentReaderListener() {

    @Override
    public void onLoadFinish(DocumentState.OPEN state) {
    Log.i(“PlugPDF”, “[INFO] Open ” + state);

    int pageIndex = mReader.getPageIdx();
    if (MainActivity.this.pageIndex != pageIndex) {
    MainActivity.this.pageIndex = pageIndex;

    BaseAnnot[] annotList = mReader.getDocument().loadAnnotList(pageIndex);
    for (int i = 0; i < annotList.length; i++) {
    if (annotList[i] != null) {
    annotList[i].showBBox(true);
    annotList[i].postInvalidate();
    }
    }
    }
    }
    };

    Do you have any clue how can I achieve this?

    #11456 Reply

    Dr. Plug
    Moderator

    Hello Zsolt,

    Thank you for your inquiry and code snippet.
    We have been able to reproduce this issue on our side.
    We’ll contact you again shortly to let you know what we have done.
    If you have any questions, feel free contact to us.

    Best regards,

    Dr.Plug
    PlugPDF Support

    #11462 Reply

    Dr. Plug
    Moderator

    Hello Zsolt,

    Thank you for your patience.
    This code snippet will help you to do what you want.

    I hope to have addressed your concerns.

    Best regards,

    Dr.Plug
    PlugPDF Support

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Annotation's BBox
Your information: