script to save .pdf with different presets generates the file size low resolution wildly different interactive operation

The script below is adapted in part from that has been with Illustrator and other pieces and the pieces that I picked up the Forum.  When I run it on a 15.3 Mg .ai file it produces

. The same PFS size that would be the case if I manually created at Headquarters printing and by default; but the low-resolution sort option to 9 Mg as opposed to the 439 K he "should" be.

Please someone be kind advise me how can I change the script to work as I want that: I had counted on my custom screening done the work for me.  Thank you in advance.

   var jiName=app.activeDocument.name

   var pos = jiName.indexOf(".ai"); 
      if (pos > 0){
          jiName=jiName.substr(0,(pos))  
      }
    var pos = jiName.indexOf(".pdf"); 
      if (pos > 0){
         jiName=jiName.substr(0,(pos)) 
      }
    
    var saveProof = new Window ("dialog", "Save Proof");
        saveProof.orientation="column"
        saveProof.alignChildren = "center";
        
  var sPGroup1 = saveProof.add ("group");
        sPGroup1.orientation="column"
        sPGroup1.add ("statictext", undefined, "File Name");
            
  var save_pdf = sPGroup1.add ('edittext {text:"", characters: 30, justify: "center", active: true}');
        save_pdf.text=jiName+".pdf"
        
  var sPdQButtonGroup = saveProof.add ("group");
        sPdQButtonGroup.alignment = "center"; 
        sPdQButtonGroup.alignChildren="row"
        sPdQButtonGroup.add ("statictext", undefined,"File Quality");
  var HQ=sPdQButtonGroup.add ("radiobutton", undefined, "  HI-RES  ");
  var IDefault=sPdQButtonGroup.add ("radiobutton", undefined, "  Standard  ");
  var lowres=sPdQButtonGroup.add ("radiobutton", undefined, "  low-res  ");
        sPdQButtonGroup.children[1].value = false;
        sPdQButtonGroup.children[3].value = false;
        sPdQButtonGroup.children[2].value = true;
        sPdQButtonGroup.active=true;
        sPdQButtonGroup.visible=true;
        
  var sPButtonGroup = saveProof.add ("group");
        sPButtonGroup.alignment = "center"; 
        sPButtonGroup.alignChildren="row"      
            
  var sPok=sPButtonGroup.add ("button", undefined, "Save Proof");
  var sPcancel=sPButtonGroup.add ("button", undefined, "Exit");
        sPButtonGroup.active = true;
           
        sPcancel.onClick = function() {
           //sP_ok=false;
           saveProof.close();
                       }
        sPok.onClick = function() {
            
              app.executeMenuCommand('save'); // save existing Illustrator file
              
              var my_pdf= new File("users/Les/Desktop/PROOFS/"+save_pdf.text); //Full File Path 
              
              saveFileToPDF(my_pdf);
                          
              function saveFileToPDF(myFile){  
              //Setup Save Options for PDF  
              var saveOpts = new PDFSaveOptions();  
              saveOpts.compatibility = PDFCompatibility.ACROBAT6;
              saveOpts.generateThumbnails = true;  
              saveOpts.preserveEditability = true;
              saveOpts.requirePermissionPassword = true;  
              saveOpts.permissionPassword = "*-*-*-*-*-*";
              saveOpts.compressArt = true; //default
             saveOpts.embedICCProfile = true;
             saveOpts.enablePlainText = true;
             saveOpts.generateThumbnails = true; // default
             saveOpts.optimization = true;
             saveOpts.pageInformation = true;
              
              if (HQ.value==true){
                saveOpts.pDFPreset = '[High Quality Print]';
              }
          
              if (IDefault.value==true){
                saveOpts.pDFPreset = '[Illustrator Default]';
              }
          
              if (lowres.value==true){
                saveOpts.compatibility = PDFCompatibility.ACROBAT4;
                saveOpts.pDFPreset = 'Smallest File Size v4';
              }
          
              //  
              var originalInteractionLevel = userInteractionLevel;        //save the current user interaction level  
              app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;      //Set user interaction level to suppress alerts  
              app.activeDocument.saveAs(myFile,saveOpts);        //Save File  
              userInteractionLevel = originalInteractionLevel;        //Set user interaction level back to original settings 
                            }
                        
              saveProof.close();
              
        }
            
  saveProof.active=true
  saveProof.show()

  

Oh, please check that: ' "saveOpts.preserveEditability = true;".

Maybe try to disable this option.

Tags: Illustrator

Similar Questions

  • Record and save under is no longer see the file size

    I have Photoshop CS6 and first 11 elements and two showed the file size correctly estimated until a couple of weeks, and all both stopped at the same time.  With the help of Image, Mode I checked on both the images I am recording are 8-bit images and not 16-bit.  I am on Windows 7, 64 bit.

    Please help as I find this feature very useful.

    Well, after investigation over last night and this morning, I think items works very well and that I was confused by the way Image, luxury magazine fashion shows '-bit 8/channel","BOLD"or grayed out and not with chunks of choice between 8 & 16 (or 32) such as CS6.

    Thank you all for your help and this can probably be liquidated now.  I'll start a new question on the Photoshop Forum now.

  • Lightroom 4 presets and the file sizes

    When I apply a preset to a photo, then export it... the file with that I find myself is significanatly smaller than my original file?  These trained same presets as big / or in most cases from the files of size in previous versions of lightroom...

    Develop a Module Presets have almost nothing to do with the size of the file.

    File size is according to the pixel Dimensions, Compression and File Format (if applicable)

    I suspect that you export the settings that you were in previous versions of Lightroom.

    What is the file format for which you export? What are the parameters of file Type, quality, Compressoin? What are your measurements? How these export settings differ from your previous export?

  • After scanning in a file, I can't save the PDF file with a unique file name, it will only back up in its original name; Otherwise, if I save the name of the file under a new name, save it box goes outside and the file is renamed and saved. Help!

    If I analyze the file and its original name is:

    Ssrv395alm76439... and I want to rename it "background."

    If I have the rename, the file won't save. If I leave the file as it will save and I have to go to an additional folder and rename it.

    Help, it's too long. I just click on "Save as" and rename and save the document in the necessary folder at a time!

    Hi Allisonchristinele ,

    Please provide the exact point of the software & OS installed on your system. Also check if it is there any update available for the software after crossing "" help > check updates "»

    Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.

    Like 'save' will save the changes with the file & "save under" will give the window using which can save the file to any location on the system.

    I would like to know is what is happening with some or all the files.

    Also, please try to check with the different user account to reproduce the problem.

    Kind regards

    Christian

  • I had windows 7 and it has been updated to windows 10. After the update, I opened a PDF with adobe reader. The sign economy is idle. When I click on save slot, it is said that he can save a blank document. Earlier, I have not any problem to save a pdf d

    I had windows 7 and it has been updated to windows 10. After the update, I opened a PDF with adobe reader. The sign economy is idle. When I click on save slot, it is said that he can save a blank document. Earlier, I have not a problem to save a pdf document with adobe reader on my hard drive. I found no updates available for my adobe reader software. Is adobe still to make the drive compatible with windows 10?

    Govind B S

    Bernd, these rights are not necessary to the reader XI. Unless the file has been secured, then it should be savable.

    I recommend that upgrade you to the latest version of the XI player that is available and if this does not work, try to run a repair installation (or upgrade to DC).

  • Cannot save PDF with CD player?

    I'm unable to save any PDF with CD player. The economy icon is removed, and CTRL S does nothing.  Any ideas?

    Is that what you have made changes in registered pdf format previously? If this isn't the case, as Bernd said, Save... as the first. Then, when you make changes, you can use Save.

  • B2B generate the file with the file extension will start

    Hi guru B2B.

    We have a problem with the name of the output file. We have customized the java class to change the file name out based on operational needs. It works well, but recently, we see the file with the extension name from "start" are generated with size '0 '. The right files always generated with the appropriate content.

    Can someone tell us what is causing this problem?

    Thank you in advance,

    NAFTA Li

    Hi Alena

    I assume you are using a B2B channel tuned to retrieve messages in a folder. Please check if this channel to listen is to have the parameter enable selected marker.

    Disabling the marker Enable should avoid generating the file start in the folder.

    Thank you

    Arun

  • I have Adobe Acrobat Standard DC and I would be able to reduce the size of PDF files that I could with Adobe Acrobat Professional. Reduce size PDF with Adobe Acrobat Standard DC file? If Yes, where is the button? PRO button was in the "D".

    I have Adobe Acrobat Standard DC and I would be able to reduce the size of PDF files that I could with Adobe Acrobat Professional. Reduce size PDF with Adobe Acrobat Standard DC file? If Yes, where is the button? IN Pro, the button was in the drop down "Document"... Thanks for the tips, Bob

    Hi Robert,.

    Please visit the following link: https://helpx.adobe.com/acrobat/using/optimizing-pdfs-acrobat-pro.html

    Kind regards

    Rahul

  • Using Player Adobe 11, now comes up with an error, once the file is opened. "Invalid Plugin detected, will waive the software Adobe reader." Close the program so cannot display PDF files. Running windows 7. I uninstalled and reinstalled the same Adobe. He

    Using Player Adobe 11, now comes up with an error, once the file is opened. "Invalid Plugin detected, will waive the software Adobe reader." Close the program so cannot display PDF files. Running windows 7. I uninstalled and reinstalled the same Adobe. Help

    It seems that something has been added in the folder on the drive. I would recommend http://labs.adobe.com/downloads/acrobatcleaner.htmluninstalling the program, running, removing any left over parts of the record player (this could be the problem), reboot and reinstall. If all goes well, that solved the problem. Future questions about the player, you should consider asking in the forum of reader, is not.

  • Word of the file size: .docx converted in PDF format

    Hello

    I use Adobe acrobat X pro and I need to convert a Word to PDF file to join with all do us commercial offers. The file size is important in order to limit the size of the mailbox content. At the moment my Word file is 25 and it's ok, but when I convert it the result is a 120 KB PDF... I did some research in the Acrobat community and they often explain to use "Save as other", but I do not have these (maybe it came with version XI).

    I would like to know if anyone has an idea of what I can do with my version of acrobat to reduce the size of the file.

    Thank you

    Ben

    PDF Optimization is not available in Std AFAIK. However, you asked on the conversion of a WORD file. The best way to keep the size down is to NOT use save them in Adobe PDF format. Who's using PDF Maker (the Acrobat in WORD menu) which adds tags and many other things that inflate a default PDF. If you do not use this option, then use preferences to disable the tags and other elements in the file (like all bookmarks and all the rest). The easiest way is to print to the Adobe PDF printer. Don't forget to keep your simple fonts. It is better to embed fonts when you send a PDF file to others (especially from PC to MAC Linux as the fonts on the system may be different). Don't use only not the smaller file size settings. Use Std as a minimum or press options or Print embed all the fonts as subsets. The MST is fine as long as people use Acrobat or Reader for viewing, but other viewers may not recognize the basic fonts Adobe.

  • Hi, I need for my files to end lower case (.pdf). When I download the files, it is automatically in PDF capital. How can I fix?

    Hi everyone, I need help. I need for my files to end lower case (.pdf). When I download the files, it is automatically in PDF capital. How can I fix?

    Hi Sarah,.

    If you could, it will be great since I have no use for him. I was under the impression that what I read before paying that there will be no refund. Thank you if you can get there. Are there other options that could help me with my problem though. I still need to be able to convert as many files in .pdf format, do not. PDF. Please let me know.

    Thank you once again.

    Tri Nguyen

  • How to reduce the file size or reduce the document during the conversion to PDF.

    I have to download an onlind doc and can't download it if it is in PDF format.  I converted it all right, but they limit the saize equal to or less than 5 Meg file.  The file is a page, and it says it's Meg 6.3, so it won't, except the transfer of files.

    Hi speck300,

    If you want to reduce the file size of a PDF document, you must use Acrobat. If you do not have Acrobat, you're certainly welcome to try for http://www.adobe.com/products/acrobat.html. Acrobat Pro, there are several options to reduce the size of the file, including the file > save as other > PDF of reduced size and file > save as other > PDF optimized.

    Best,

    Sara

  • When I try to open Firefox and explore, I get a menu of recommended programs and asked me to choose the program with which to open the file.

    Original title: open Firefox and explore

    When I leave early to Mozilla Firefox or Explorer, I get a menu of recommended programs and asked me to choose the program with which to open the file. When I do, I get a security warning asking if I really want to do. If I check "Run", I get redirected to the previous list, and I find myself in a circle without end. It does not matter what choice to make. Used to be that I went from starting Firefox directly.  I can get in if I have Firefox right click and choose to run the file as an administrator and then give permission to open the program. How can I cut these two additional and direct access, that I used to enjoy. I run Vista. The same thing happens if I have to explore. Would be grateful for the help.

    Hello

    1 during how long have you had the problem?
    2. don't you make changes to your computer before the problem?

    I suggest that you follow the steps below and check if the problem persists.

    Method 1:

    When you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program
    Method 2:
     
    Step 1:
     
    Make SFC scan and check if this is related to missing or damaged system files.
     
    Step 2:
     
    After the SFC scan, set the file association and check.

    Method 3:

    Test the issue in a new user account .
     
    See also:
  • Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    I got this program for years.  Update Windows 10 and after nothing more than headaches with he returned to Windows 7 and it is then Acrobat has stopped working.

    Hi lindat7439924,

    There is no uninstall for Mac Reader program. You can directly delete the application from the Applications folder, which is just trash/Applications/Adobe Reader.app.

    Then you can download Adobe reader from here: http://get.adobe.com/reader/enterprise/

    Kind regards

    Meenakshi

  • Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].  I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "coul

    Could not copy a file at the location requested. Mac OS 10, Version 10.10 [1].

    I JUST bought this new macbook pro and Lightroom installed, imported 2 lots of pictures, but all of a sudden he kept denying my imports with "could not read the file" or "couldn't copy file at the location requested.  Help, please!

    Your use of the word "files" (in the plural) still makes me believe that you have not checked the permissions on the folder that is appropriate (in the singular).

    You must determine the Destination of the Lightroom Import dialog window Panel and see which folder Lightroom is really tr6ing to copy photos in (which may have been accidentally changed and is not what you may have used in the past) and change the permissions to write to this folder.

Maybe you are looking for

  • Unable to connect blue tooth Arc Touch mouse for Macbook Pro

    * Original title: tooth blue Arc Touch mouse Hello.  I am trying to connect the mouse Arc Touch Bluetooth to my macbook pro Mac OS 10.9.5.  However, it does not appear in my bluetooth devices.  Is someone having a similar problem and has a solution?

  • Trying to create a playlist without Windows Media Player?

    Is it possible to create a playlist without Windows Media Player? I VideoLan if that's any help. Here's the question: I did the test.m3u file, which is placed inside the folder "Music" with the following content. #EXTM3U 1\test.mp3 If test.m3u exists

  • Playing blu - ray movies... the screen turns black. Help!

    My laptop HP dv7 - 4197cl a problem playing blu - ray movies... screen goes black.  When some of the blu ray movies (Green Zone... tried to play 2 drives different blu - ray and "A prophet"), the disc begins to charge to the top and then the screen g

  • Computer not install or uninstall.

    So, my father-in-law worked as a painter in the abandoned apartments and gets to keep whatever it finds. Well, he found me a computer and I love it, but whenever I try to uninstall or install something, the computer closes the window before I still c

  • After having upgraded to windows 8 pro, digital keys no longer work.

    I have a HP Pavilion P7 1054 w / AMD Athon II 645, which was initially loaded with the Windows 7 operating system. When I've upgraded to Windows 8 Pro, now the number keys on the keyboard do not work.  My keyboard is one that came with the HP compute