3 Replies Latest reply: May 30, 2013 4:43 AM by ThomasBB83 RSS

    Printing all artboards?

    ThomasBB83 Community Member

      Hi,

       

      I'm building a script that loops through folders and prints all available PDF-files (long story).

       

      I'm having some issues with PDF-files, that has multiple artboards in them.

       

      When doing the obligatory "sourceDoc.Print()" it only prints the first artboard. Are there any available print-options that I can set to force it to print ALL artboards in the given file?

       

      BR,

      Thomas

        • 1. Re: Printing all artboards?
          ThomasBB83 Community Member

          I tried this as well:

           

          options.artboardRange = "1-"+sourceDoc.artboards.length;

          sourceDoc.print(options);

           

          but to no avail - it still only prints the first page/artboard.

          • 2. Re: Printing all artboards?
            Muppet Mark Community Member

            Print options holds about a half dozen other sub-options you will need to construct several of these to pass… The easier option is to save a print preset and use that…

            • 3. Re: Printing all artboards?
              ThomasBB83 Community Member

              Managed to get it working - I needed to do this as well:

               

              var colorOptions = new PrintColorManagementOptions();

              var printOptions = new PrintJobOptions();

              var options = new PrintOptions();

              options.jobOptions = printOptions;

               

              I had already declared PrintColorManagementOptions and PrintOptions, but I'd forgotten about PrintJobOptions. After setting these, everything worked beautifully.

               

              So thanks for putting me on the right track