How to run 'Save as optimized' in a javascript script to automate the optimization of PDF.

How to run 'Save as optimized' in a javascript script to automate the optimization of the pdf?

In can't find if this function exists even in javascript, because the API reference is a dead link:

DC Acrobat SDK Documentation

This is the good link: Adobe - Adobe Acrobat SDK license agreement | Adobe Developer Connection

But just to make you save time, you can not do with JS directly. You can probably trigger the menu item he does, but then you still need to interact with it manually.

Tags: Acrobat

Similar Questions

  • How can I save a directory or a specific file without saving the Image to the system?

    Purchased new software my company insists on the fact that we back up software data every day on a USB. I tried to schedule a backup, but I don't want the Image of the backup system. How can I save a directory or a specific file without saving the Image to the system?

    When you choose what to back up, simply uncheck the box of system image:

    Or another simple way is to program a command that copies the files on your USB key, replacing the backup from the night before.

    For example, this command copies all of my 'Project X' folder on my USB drive (drive E :)

    copy 'c:\project x\' e:

  • How can I save my password so I buried whenever I opened the window of a dual boot 8

    I have the dual boot with windows 7 pro and windows 8 pro, whenever I go to windows 8 that I have to enter my password each time. I didn't save it on first use. Is it possible to save my password without having to change it?

    Hello

    Here's how to do automatic login of Windows 8 :
    Hope this helps, good luck :)
  • Hello, I am a beginner and I would like to know how do to save we will say a vocal track, without saving the rest of the music on it?

    I imported several wav tracks in a project at the hearing. Now, I'm recording a vocal track directly in the program, but it also saves all of the music on this track... What I am doing wrong?

    Thank you

    Stone

    See this ancient thread in the FAQ of the hearing.

    Track 1 recorded on track 2 - How to stop what is happening?

  • How to run a window of data acquisition and another pane at the same time

    Hello

    I have a main window for data acquisition and in front panel there are four Sub Vi. When the main window of data acquisition is running and at the same time if I run the Subvi - main window stops data acquisition and the secondary window starts to run. But I want to launch the window of acquisition of primary data and the pane at the same time. Please give me a solution for this...

    Thanking in advance.

    Nikhil

    Hi Nikhil,

    My explanation has answered your question. Take a look at the image as an attachment. Let us know if you have any other questions.

  • How to run a co-op start up Indesign script?

    Hello

    I have a script that works well when it runs manually in inDesign CC.

    Now I need this script to run automatically when a file is opened in InDesign.

    I put the script in the folder "scripts stratup. But get the error that there is no active document. The script runs before the opening of the document.

    on: http://forums.adobe.com/message/4005956 sommthing is mentioned, but I can't run!

    Do I have to install the APID toolkit (only has a plugin for CS4 and low) or APID toolassistent? And when I do? What then?

    I'm not a computer scientist.

    Can anyone help?

    TNX

    Just click in the box as ok and reopen your application

    Mi_D

  • How do I save my file, I put in multitrack session, with the changes I did it

    Alright. I have a mission to create an Audio CD of some titles that are not consistent with each other. So I put my files in "track one" and I put on each end of the previous file open the following file. It turned something like fade in/fade out. So, is it possible to save my files in this position separately? I was doing this: save all in one mix and cut each piece in itself. It is not very practical, I want a same share. I hope you get the idea: make MP3 files, that "flow" into the other. We need a more automatically.

    Thank you.

    At the moment you have hours, Minutes, seconds, and milliseconds selected as your measure of time on the time bar at the top of the waveform display. If you right-click on the bar, you will get a drop-down list to select different time scales. For the production of CD you must select the Compact Disc 75 FPS. Every second of the audio CD is divided into 75 frames. In order to stop click between tracks, you must make sure that your tracks begin and end exactly on a CD image. To do this in the drop-down list of time you need to activate nod to the framework to ensure that your pointer clings to an image when you place to change your audio files.

  • How can I save by iPad 3 when the screen is black and nothing appears?

    How can I save my iPad in ITunes or iCloud 3 when the screen is black and nothing appears?

    Is the empty screen, because just the screen is broken, or is the iPad just dead? Have you tried a soft-reset/reboot it?

    At least you can see what you touch on the screen of the iPad, you cannot force a backup to iCloud.

    If the iPad still works and is connected to wifi, a backup should automatically happen (if iCloud backups are enabled) if it is connected and the locked screen.

  • Convert Photos from iPhoto. Why will it erase all the pictures on my computer?  How can I save them?

    Convert Photos from iPhoto. Why will it erase all the pictures on my computer?  How can I save them?

    Why will it erase all the pictures on my computer?  How can I save them?

    You don't have to do anything.  When you open your iPhoto library with the new photo app that the existing library is migrated to a new library of Photos.  However, as with any operation should have a current backup before proceeding.

  • How can I save photos?

    How can I save images (from my digital camera) and remove all the pictures on the camera?

    You connect the camera to the PC VIA USB
    cable or you have an internal USB media or external
    Player that you insert your memory card in? Anyway
    should work, but the media player is the best because it is
    not drain the batteries of your camera. Uploading photos
    When the batteries are low (after a long photo taking session
    for example) can lead to damaged photos.

    Maybe this article will help you get started:

    How to import pictures using Windows XP digital camera
    http://www.rickysays.com/import-digital-camera-photos-Windows-XP
  • Linpus Linux how to run the installation on a CD FRO invites him BACK

    I just bought a new laptop Acer E1-571 and it comes with what is called linpus linux and the screen comes up with a DOS command prompt:

    [root@localhost/i#

    How to run a program on a CD! I know that the program is in the root directory of the CD but how to make the computer to run it? DOS commands elude me after 20 years of not using them?

    BIOS legacy mode does not appear as an option in one of the menus.

    Nathalie! While Linux is booting and the option to boot from the CD-ROM, press Ctrl/Alt/Del!

    Thanks for your advice tux0topo

  • How to run downloaded 6 Lightroom?

    How to run downloaded 6 Lightroom?

    Hello

    Please visit the following link: download and install Adobe Lightroom 6 (license single App)

    Kind regards

    Shipti

  • How can you save a preset in illustrator CC 2014 pencil?

    This seems like it should be an easy thing to do, but how can you save a preset of pencil tool? I got the pencil the way I want to (after much tweaking) but cannot find a way to save. Tracked help as much as I can get nowhere. I'm sure it's very simple if you just know where to click!

    Thanks in advance,

    HE'S

    You mean the options of the tool itself?

    You can save them as a preset.

  • How to run and pass parameters to the exe file in the txt file.

    Hello

    I am facing problem with passing parameters in the .exe file, which is run by labview.firstly that I have script .txt with the settings that I have to go to the .exe file. This .exe file is also a software, and this script is written for her. And now I have to create program in labview which should satisfy the following points.

    1. I have to use a button named "Run script". If I pressed the button, it should open the browser where I can choose the script .txt file.

    2 .exe application is expected open(Path already chossen).

    3. After passing the .exe application settings should be closed.

    4 and labview should now update its parameter

    I just open using Exce.vi .exe file, but I didn't get any idea to do more than this.can someone please help me?

    Thanks norbert. CAN I love it? What should I change now? VI attached below...

  • How to "save under" a document by using scripts

    I want to use scripts to automate the creation of badges of identity. I have a model PSD of the badge that includes a slot for the photo and a text field for the name. The approach that I took in my script is simple:
    1. Invites the user to select the source for the pictures folder.

    2. for each folder in the folder, follow these steps:
    -resize the photo

    -Copy the background of the photo layer

    -close the document and the focus back on the PSD template

    -Place the copied picture as a new layer

    -It translates into a certain position if it fits in the slot of the picture of the model

    -change the text in the text layer for the name of the photo, we have placed (which is the real name of the person)

    3. save the photo in jpg with some given save options in a certain folder of output.

    Step 1 and 2 only when needed. However, when I save the badge, I get a really strange error saying:2QrAQ3T.png

    Here is all of the code (JS):

    var sourceFolder = Folder.selectDialog ("Selecteaza folderul cu pozele: ");  //prompt the user to select the source folder
    var files = new Array();
    files = sourceFolder.getFiles ();  //put the files from the folder inside an array
        var startRulerUnits = app.preferences.rulerUnits;  //save the initial units used
        var startTypeUnits = app.preferences.typeUnits;
      
        app.preferences.rulerUnits = Units.PIXELS;  //change the units to pixels so the translate command will work as expected
        app.preferences.typeUnits = TypeUnits.PIXELS;
    var mainDoc = app.documents.getByName ("Ecuson.psd"); //this is the name badge template
    var so = new JPEGSaveOptions(); //the save options i'll use with the save command
    so.embedColorProfile = true;
    so.formatOptions = FormatOptions.STANDARDBASELINE;
    so.matte = MatteType.WHITE;
    so.quality = 10;
    for(var i = 0; i<files.length; ++i){ //loop thru each photo in the folder
        var img = app.open(files[i]); //open the image
        var saveFile = new File("C:/Users/Eugen/Desktop/salvate/" + String.valueOf(i+1)); //this is the file where I'll save the jpg file
        var nume = img.name.replace(".jpg", ''); //this is the name of the image I just opened. I remove the jpg extension so only the name is left
        app.preferences.rulerUnits = startRulerUnits; //I change the units back t their original value as for this phase I need to use CM
        app.preferences.typeUnits = startTypeUnits;
        img.resizeImage (3, 4, 300); //resize the image to 3x4 cm at 300 dpi
        app.preferences.rulerUnits = Units.PIXELS; //change the units to pixels again
        app.preferences.typeUnits = TypeUnits.PIXELS;
        img.backgroundLayer.copy(); //copy the background (and only) layer of the image
        img.close(SaveOptions.DONOTSAVECHANGES); //close the document without saving changes
        app.activeDocument = mainDoc; //focus back on the badge template
        var pLayer = mainDoc.paste(); //paste the layer I just copied into the template
        pLayer.translate (-314, 33); //place the new layer where I need it to be
        mainDoc.layers.getByName("Name").textItem.contents = nume; //change the name on the badge to the name of the original file
        mainDoc.saveAs (saveFile, so, true, Extension.LOWERCASE); //this is ehere I have issues...
        }
        app.preferences.rulerUnits = startRulerUnits; //change back to centimeters
        app.preferences.typeUnits = startTypeUnits;
    

    I guess that it may be a problem with the agument saveFile, I can save the jpg manually from photoshop.

    PS: using CS6

    Thank you!

    I think you're line 17 it is. I'm not sure what you're doing with: String.valueOf (i + 1). You're simply trying to name as these files through a number? If this is the case, simply put: i + 1. You also use the incorrect syntax for your way. You do not have the jpg extension. The line should read:

    var saveFile = new File("/c/Users/Eugen/Desktop/salvate/" + (i+1) + ".jpg");
    

Maybe you are looking for

  • Trouble syncing Tungsten E2

  • Reinstalling operating system inherited when the disk is broken

    Hello I have an old Mac Book Pro (mid-2009) running OSX Yosemite. My ultimate goal is to reinstall Snow Leopard, so we can run Pro Tools on it. I have an original installation disk for Snow Leopard. However, construction in the drive on the MacBook P

  • Black Menu bar and Dock do not stay on

    Hello I use OS X El Capitan on an end 2015 13 inch MacBook Pro. I like the menu bar black and dock and they have been on since I got the computer. However, recently the setting ceased to stick and I had to manually enter and turn back. This isn't alw

  • Satellite M30: Error 0x47F after installing energy-saving

    After you have installed the Toshiba Power Saver message: 'error 0x47F' appears. And the energy saver does not work. The error after each reboot Message apears, too. I tried to reinstall the energy saver, but I'm not helping. Uninstall is impossible,

  • GUID or not for use with time machine

    I am about to format a new external hard drive to save the backups and other things. On the road I can use for Time Machine, but not now. I wonder whether or not to use setting GUID in the form for the reader, because it will allow me to make a disc