0 Replies Latest reply on Dec 9, 2014 10:44 AM by brianp311

    Javascript, CS6: PDFs, EPS graphics not printing with ID6

    brianp311

      We run our ID6 application in a virtual environment through Citrix, and I've had a hard time getting Print Preferences to stick, so I created a script to handle the outputs to two local proofers. When I print, the text and photos show up OK, but no linked documents on the page print out, or they print the optimized view (gray box with an "x" through it). I tried inserting a sleep timer to see if that would help, to no avail. Any thoughts? Thanks.

       

      var main = function()  {

       

           var myDoc;

       

           try {

                myDoc = app.activeDocument;

           }

           catch(e) {

           alert("Please open a document.");

           return;

           }

       

          var printerList = myDoc.printPreferences.printerList;

          var dcPrinters = getDCPrinters(printerList);

          var thePrinter = getPrinter(dcPrinters);

       

          try {

            with (myDoc.printPreferences) {

                paperSize = "11x17";

               scaleMode = ScaleModes.SCALE_TO_FIT;

               //scaleProportional = true;

               printer = thePrinter;

               printLayers = PrintLayerOptions.VISIBLE_LAYERS;

               sendImageData = ImageDataTypes.ALL_IMAGE_DATA;

       

           }

        }

        catch(e) {

                 alert("There was a problem. The page will have to be printed manually.");

                return;

        }

       

        $.sleep(3000);

       

        myDoc.print(false);

      };