No announcement yet.

JavaScript deletePages

  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaScript deletePages


    I like to know if the JavaScript "deletePages" is supported by Foxit Reader to delete the spawned pages (my question is not about regular/static pages).

    And more generally I am looking for documentation about the JavaScript functions supported, or not, by Foxit Reader.

    Thank you

  • #2
    Dear JRB,

    Is it possible to email to [email protected] with the mentioned "spawned pages" that you'd like to delete so we could further check with our JS engineer?
    Currently there's a draft Javascript documentation and we're still completing it to be released in the public. For now, you may email to [email protected] to ask for the documentation. Thank you.


    • #3
      I did it.
      Thank you


      • #4
        I'm still waiting an answer from the support…

        I tried with the current version of Foxit Reader, it doesn't work.
        On the other hand, spawning pages from a template works well.

        That's why I think it's a bug: one does not go without the other, spawning pages on demand is of little use if users cannot delete them on demand.
        Isn't it?


        • #5
          JRB ,Our colleague Cherry has already replied your ticket on Jun, 6th ,please see her reply below:
          The JS "deletePages" should not be supported by Foxit Reader. Foxit Reader doesn't support to delete pages. I'm not quite sure about what you meant by "spawned" pages, could you please give us an example of the PDF file?
          So we are now looking forward to getting the file sample,please send the file sample to [email protected] at your convenience. Look forward to your reply.


          • #6
            Lisa_lee As Cherry said, I emailed the support about documentation, I still get no answer.

            Spawning pages is a very powerfull feature of the PDF format.

            See the difference between a "static" page and a "spawned" page in this sample file, when you check the "Contrat A" box a new (red) page is spawned, when you uncheck this box the red page should be removed. And so on for other boxes.
            It works fine with Acrobat Reader DC and Adobe Reader XI, and with Foxit Phantom too.
            But not with Foxit Reader, which generates the page as expected but does not delete it. Which makes the spawn function useless.
            That's why I'm thinking of a bug.

            I just send this to the support.
            Attached Files
            Last edited by JRB; 06-23-2020, 05:45 PM.


            • #7
              JRB ,Thanks for your response.This issue "Javascripts for increasing/deleting pages don't work in Foxit Reader" you mentioned,I also could replicate it on our part and it has now been submitted to our internal bug tracking system for our QA team to do further analysis with report ID#QCPHANTOM-25564.We will keep you informed for any updates about this issue.


              • #8
                Thank you.