1 Reply Latest reply on Sep 1, 2008 11:56 AM by (Sidnei)

    Get a preview of a link

    Level 1
      Is it possible to generate from IDS a preview (in jpg, png, ...) of a linked file (embedded or not) by javascript / vb / apple script and / or java corba (preferably) ?
        • 1. Re: Get a preview of a link
          Level 1
          inddFile = "/Users/alemac/Sites/scanner_indd/scan/indd/file.indd";
          imageFile = File("/Users/alemac/Sites/scanner_indd/scan/images/opa.jpg");

          objDocument = app.open(File(inddFile));

          for(i = 0; i <= objDocument.allGraphics.length - 1; i++){
          objImage = objDocument.allGraphics[i];
          objImage.exportFile("jpeg", imageFile);
          }

          app.documents.item(0).close(SaveOptions.no);