Announcement

Collapse
No announcement yet.

getPageNthWord(i,j) javascript function

Collapse
X
 
  • Filter
  • 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);
    console.println(ckWord)

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

    Comment


    • #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.

      console.show()

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

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

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

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

      Comment


      • #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.

        Comment


        • #5
          Naes,
          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:	152
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.

          Comment


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

            Comment


            • #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.

              Comment


              • #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.

                Comment

                Working...
                X