No announcement yet.

getPageNthWord(i,j) javascript function

  • Time
  • Show
Clear All
new posts

  • getPageNthWord(i,j) javascript function

    The getPageNthWord(i,j) javascript function does not work.

    The following code only works for the first word(0,0). No other words on the page can be found.

    var ckWord = this.getPageNthWord(0, 10);

  • #2
    Regarding the situation you encountered, Could you please please upload the issue file to us or create a support ticket here for internal testing?


    • #3
      create a javascript action from the action wizard and add the below code. Only the first word will be found. The forums will not allow actions to be uploaded.

      var ckWord = this.getPageNthWord(0, 0);

      var ckWord2 = this.getPageNthWord(0, 1);

      var ckWord3 = this.getPageNthWord(0, 2);

      var ckWord4 = this.getPageNthWord(0, 3);


      • #4
        Naes,We apologize for the inconvenience caused by our Foxit application. This situation you mentioned has been submitted to our internal bug tracking system for our QA team to do further analysis with report ID#QCPHANTOM-30556. Any progress on this issue,I will keep you informed again.


        • #5
          Regarding the issue "The getPageNthWord(i,j) javascript function does not work." that you refered in this thread,our QA team failed to replicate it on our side.
          They created any document with texts and executed the scripts,the scripts could return value correctly, the getPageNthWord interface was responsive and working correctly.
          Click image for larger version

Name:	return value.png
Views:	385
Size:	29.7 KB
ID:	190019
          So for this situation you mentioned,we still need your help to provide us with the following information:
          1: The PDF file with the corresponding Javascripts included that you are working on.
          2: Record a video to show us the whole process.
          3: Your OS information.
          If it is not convenient to upload files on forum directly,please help to help to submit a ticket from our ticket submission center to provide us those requried files (please input Attn,Lisa in ticket subject).

          Look forward to your reply.


          • #6
            Can you try to run the same javascript on this file? It only outputs "2" to me.
            Attached Files


            • #7
              Naes ,Thanks for your response.I have handed over the document to our QA team already for further testing. Any updates,I will inform you again.


              • #8
                Naes, The issue you mentioned in this thread could also be replicated by our QA team.It has been escalated to our R&D team, they will further work on it.

                Any new progress about it,I will keep you informed again.