Scripting the PDF Optimizer

Hi folks
I'm trying to find a way to script the PDF optimizer in Acrobat Pro 9 (Win), so it is invoked from JavaScript with the name (or path, whatever) of a profile to use when optimizing.
This feels like it should be a FAQ, but a search of the forums doesn't reveal any posts and I've had no luck with Google or with the Acrobat scripting documentation. I can invoke the scripting UI with
  app.execMenuItem("PDFOptimizer");
... but not select a profile or accept the dialog. There doesn't seem to be a proper scripting API for it. Am I just blind? Or is there no way to do this? It seems like such a basic task to use Acrobat for.
My use case is automating a weekly time-consuming PDF processing task so it can be performed in a couple of simple steps by staff without requiring error-prone checklists. One of the requirements is to save two different optimized versions with different resolutions used for image resampling.
Craig Ringer
POST Newspapers

Thanks for confirming that.
It's such an obvious use case that I guess Adobe must not want Acrobat Pro being used where Acrobat Server could be sold. Oh well. I'd use multivalent or pdftk, but neither offer image re-sampling or attachment stripping at the moment.
This limitation means users have to babysit the script a bit, which is unfortunate, but not the end of the world.

Similar Messages

  • PDF Optimizer and Java Scripts

    We have a custom Java Script that is at the bottom of each page of certain PDFs.
    The Java Script is setup to print the date on the bottom of each page if a selected PDF is printed to hard copy.
    Our problems lies in the fact that after adding the Java Scripts, the PDF optimizer doesn't seem to optimize the PDF at all.
    We are still talking about 6MB+ PDF files. When I look at the AUDIT feature in the PDF optimizer, the biggest offender is Fonts.
    I have messed around with tons of settings inside of the PDF optimizer and nothing seems to work.
    We are using Adobe Acrobat Professional 7.1.0.
    Thanks,
    Bill

    You might also look at Adobe's FDF Toolkit.
    http://partners.adobe.com/asn/developer/acrosdk/forms.html
    This is excellent if you just want your users to be able to fill out an html form and put the data values into a PDF document.

  • How can I reduce the file size when PDF Optimizer does not do much?

    I have a PDF form that exists of 48 pages. 44 pages are forms / have form fields, the other 4 are just informative. Each form-page has approx. 80 fields (checkboxes, text fields).
    When I started setting up the PDF form the file size was 12 MB and I had placed fields on 21 pages. Then with 34 pages the file size was 19 MB. And with 40 pages it was 35 MB big! Finally with 44 pages the file size is 34 MB.
    So I searched with Google and found some tips. Using the "PDF Optimizer" option inside Acrobat for example. So I did, and the file was reduced only with 3 MB... 31 MB was the file. Also used the option "Save as.... Optimized".... no difference. I also found a suggestion about removing embedded fonts. Using the "Audit Space Usage" option I noticed the fonts taking many MegaBytes:
    * Content Streams: 5.287.000     15,09 %
    * Fonts:                24.556.810     70,08 %  !!
    * Acrobat forms:      3.349.164    12,05 %
    In the older PDF version (I saved and kept this one too) with just 21 pages with form-fields, the  "Audit Space Usage" shows:
    * Content Streams: 5.292.000     40,14 %
    * Fonts:                 1.290.224     9,79 %
    * Acrobat forms:      1.588.758    12,05 %
    So I could save many many MegaBytes by -UnEmbedding- fonts. But if I do this (unembed ALL fonts), the file size stays almost the same!?!?!? Why? What can I do to reduce the file size? I would like it to be 8 MB if possible (32 MB -  24 MB = 8 MB)?
    Thank you for your help!

    If you have authored the form, reduce the number of different fonts for the content and form fields.
    Any font used in a form field will cause that font to be embedded into the PDF.
    If you are going to Optimize the PDF be very careful with forms. Optimization does a lot of removal of items and rearranging of items which can really mess up forms.

  • PDF Optimize in a Batch Sequence?

    Does anyone have any ideas on how I can run PDF Optimize on many files at one time? I want the same Optimize options applied to each file in my directory, there are several hundred that need to be optimized. I've researched a bit about batch sequences but optimize does not seem to be part of batch.

    In Acrobat 8 Professional the PDF Optimizer is available in the output options of the batch sequence. You don't need the scripting forum.

  • PDF Optimizer Removes Lines for Arrows & Circles

    I'm using Acrobat 9 Pro for Mac.  I've created documents that need  arrows & circles around certain images, & have created PDF's from those docs.  I need to optimize those PDF's to reduce the filesize, but in doing so, the PDF Optimizer removes the lines from the arrows & circles, leaving just the beginning & ending points.  Here's an example of before/after optimizing:
    I've changed just about every setting in the PDF Optimizer, but it still removes the lines.  What am I missing here?
    Thanks for your help!

    I'm afraid I initially missed your "I've changed just about every setting in the PDF Optimizer," and don't have the expertise to take this much further.  I assume you added your circles and arrows with Acrobat 9's commenting tools.  If so, a desperate measure might be to flatten them, as discussed by Dov Isaacs a few times, most recently with regard to "Typewriter Objects," over in the InDesign forum, but I'm getting out of my depth.
    Good luck,
    David

  • Acrobat Pro 9: PDF Optimizer module refuses to load...

    Okay, I have a weird one...
    Adobe Acrobat Pro 9.06 - The PDF Optimizer module just decided to stop loading yesterday. You poll the menu item and the window does not appear.
    So I followed the usual protocols:
    I restarted - nothing.
    I ran a privilege fix - nothing.
    I ran a deeper privilege fix and a drive diagnostic - nothing.
    I logged in with a new account - Acrobat's PDF Optimizer module worked - so it must be preference corruption.
    I reinstalled the application from the original media and updated it to 9.1 - still no PDF Optimizer.
    So... the answer is preference corruption. But the question is, which preferences am I safe to delete?
    I really don't fancy killing my suite and having to reinstall everything over again, so if I could pinpoint which prefs to kill to just affect Acrobat it would save me some time and stress...
    Does anyone know?

    The generic Acrobat forum wasn't an option when I had to select which community I was allowed to publish the question to... That was my first option.

  • PDF Optimizer enlarging size of PDFs

    Hi
    We have a vendor who supplies PDF files to us. These PDF files are around 4-5MB in size, and need to be reduced for the web. Using the Reduce File Size menu enlarges them to around 18MB. Using the PDF Optimizer also enlarges the files to the same size, no matter what settings/presets you use. I've tried 3rd party PDF reduction software, and they either don't reduce the file at all, or crash. No problem with other vendor PDFs.
    Looking at the resultant 18MB file in Pitstop, the images haven't been downsampled at all, and have in fact lost their compression all together. The only two ways I have to compress these files is 1) Manually using Pitstop image by image, or 2) printing to PDF using the smallest file size distiller option. Both methods are too slow.
    One unusual message comes up after reducing the file size: %% [Error: invalidfont; PostScript program did not contain a font ]%%
    If I delete all objects except the images and reduce the file size again, it stops the error message, but the result is still 18MB. PDF version is 1.3 (4.x)
    Anybody got any ideas?
    Cheers,
    Andrew.

    Thanks for the reply Mike.
    The PDF File Optimizer is what I would prefer to use, and it works very well with most PDFs. Unfortunately, these particular PDFs don't compress using the Optimizer. I've tried many different settings, even dropping the images down to 50dpi, and Low quality, but no matter what settings I use, the files always end up around 5 times the size of the original, and the images don't get compressed or downsampled.
    I think the files must all be corrupted in some way, as the only way to fix them is to repdf them from Acrobat, which unfortunately is time consuming, and it's happening to all PDF files from this agency.
    Cheers,
    Andrew.

  • PDF Optimizer Settings

    Hi Group!
    Hope some one can help!
    I received a file from one of our printers with customized settings to the PDF Optimizer window under the Advanced menu in Acrobat 8 for Mac.
    I don't know where, for the life of me, to put this file so that when I open a PDF in Acrobat and select Advanced/PDF Optimizer this file with all of it's customized settings appears in the Settings list so that all I have to do is choose it.
    I tried asking the person who created this file, but he was just recently laid off.
    Thanks in advance!

    You folks are confusing PDF presets/settings files with what Marc is asking about.
    Read his description again: He's talking about the settings you set WITHIN THE PDF OPTIMIZER DIALOG. You have the option to save settings (e.g., creating Acrobat 4 compatibility) when optimizing files. It just doesn't tell you where the settings file gets saved.
    It depends on which version of Acrobat. For Acrobat 8, it's in this path on the Mac:
    Users/[yourname]/Library/Acrobat User Data/8.0/PDF Optimizer. Files saved in this location DO have the ".optimize" extension.
    But it's moved with Acrobat 9 Pro:
    Users/[yourname]/Library/Application Support/Adobe/Acrobat/9.0 or 9.0_x86/PDF Optimizer.
    9.0 is if you have a PPC Mac, 9.0_x86 is if you have an Intel Mac.

  • Lost pdf optimizer menu option under advanced tool bar

    I was tinkering was a rather
    large pdf setting trying to reduce its size when adobe
    restarted and somesort installation process kicked in
    after that I lost the PDF Optimizer option which used to be visible under the advanced tool bar any idea what had happened there
    Help!

    Hey, It seems somebody won me this race , I'll be faster next time
    Regards.
    Robst
    Robst - CLD
    Using LabVIEW since version 7.0

  • PDF Optimizer doesn't load

    Hello, I have a user with Adobe Acrobat Pro 8 on 10.4.11. When she clicks the PDF Optimizer link, no window shows up or loads. Is there a corrupt settings file or a file I can replace to remedy this?
    Thanks

    If its on a single pdf file it could be protected via a security
    setting. If it is true for all pdfs, then I'd recommend the usual steps
    to try to fix problems:
    1) Log on as a different user. If it works, then you have a corrupt
    preference file.
    2) Fix permissions (most likely won't work)
    3) re-install the application.
    Mike

  • Acrobat XI - PDF Optimizer problems

    In Acrobat XI, I know that the PDF Optimizer moved to the Save or Save As function. The problem that I am facing is that on one (out of 30) of the Macs that I support, when I choose PDF Optimizer, the Optimizer window does not appear. I uninstalled and re-installed Acrobat, but it still does not work. HELP!

    Rave,
    Thanks for the suggestion, but I was able to answer my own question this morning. I found that 2 of the PDF Optimizer settings, which are located in the PDF Optimizer folder in the Application Support folder for Acrobat were corrupt. Once I eliminated the settings from the PDF Optimizer folder the Optimizer window worked properly again.
    Thank you,
    Jeff

  • PDF Optimizer, Postscript Conversion and Distiller features in Adobe Acrobat X

    I use Adobe Acrobat Professional 7 and make considerable use of the "PDF Optimizer"; "Save as Postscript"  and "Distiller" features.
    We are looking at upgrading to Adobe Acrobat X, either the Standard or Professional version.
    Can someome tell me if "PDF Optimizer"; "Save as Postscript"  and "Distiller" features are included the Standard version or only in the Professional version?
    Regards
    Tony

    Yes to Postscript export and Distiller, no to PDF Optimizer. You can find the help doc at: http://www.adobe.com/support/acrobat/
    Here's the product comparison table: http://www.adobe.com/products/acrobat/matrix.html

  • PDF Optimizer option missing under Advanced menu

    Hello,
    I am using Acrobat 9.4.  I am aware that the PDF optimizer option is under the Advanced menu at the top.  However, that option seems to have disappeared.  Per the Adobe help file, I am looking in the right spot, but the option is gone.
    Is there a way to recover that option?  I have searched Google and found someone with the same problem on another forum, but no answers were posted.

    If you are running Std, then I do not think that option is available. You need to specify which version of Acrobat you are using, not just the level numer. I.E., Std, Pro, or Pro Extended.

  • Pdf optimizer image sharpening

    I like the pdf optimizer in the professional version of
    Acrobat, but I'm not happy with the results I'm getting with the
    compressed images. The images in the original pdf are 300 dpi and
    I'm compressing it down to 150dpi with the jpg compression set to
    maximum. Everything looks fine after running the optimizer, except
    that the now-compressed images are in DESPERATE need of sharpening.
    I can't find any setting to do this in the optimizer preference
    pane, which in my mind is the obvious place for it. I can't believe
    that the makers of Photoshop would not include some kind of tool
    for sharpening images. There should be something in there with
    options similar to the jpg compression settings (medium, high,
    maximum sharpening, etc.). Does anyone have any suggestions? Is
    there a plugin out there for Acrobat that does what I'm asking for?
    Thanks.

    Thank you for your posting. These forums are specific to the
    Acrobat.com website and it's set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/

  • How to save the output of sap script to pdf document in sap

    hi abapers
    how to save the output of sap script in sap so that can retrieve the saved document later.
    i have to save the rcia output from sap script in pdf document in sap so that it can be retrieved later
    how to use dms

    Hi deepika,
    This thread will solve ur problem OTF  -> PDF
    Regards,
    Pravin

Maybe you are looking for