PDF Split Issue

  • dash345

    dash345 - 2006-03-01

    When I specify split range like this:

    java tool.pdf.Split -page "1-3;5-7" test1.pdf

    I get this error:
    java.lang.IllegalStateException: must set valid password by now

    The first pdf is created correctly, but there is a 0 size pdf for the second range.

    Any help on this issue is greatly appreciated.


    • Tom Phelps

      Tom Phelps - 2006-03-02

      It's hard to say what is happening on particular PDFs without looking at that PDF.  See multivalent.sourceforge.net/bugs.html

    • Hans-Peter

      Hans-Peter - 2007-02-20

      I want to use Multivalent.jar: include it into my Java-Project an split pages.

      After some time I have come so far:

      tool.pdf.Split split = tool.pdf.new Split(new File(pdfFile));
      String[] args = new String[3];
      args[0] = "-page";
      args[1] = "1;2;3;4;5;6";
      args[2] = pdfFile;

      Astonishing enough (for me) that works, but:

      - that's probably not the way it should work
      - my java application exits after every call of split.main
      - I have to know the number of pages of the document
      - I cannot specify the location & name of the single PDF page files

      I cannot see another way to tell "tool.pdf.Split split" to do its job.
      Who can give any help?

      Thanks in advance.


Log in to post a comment.