Acrobat 9 Pro - Change Image Compression/Quality w/ Javascript?

Hello,
I've got a folder-level script that will merge PDFs by using "insertPages" to add a list of PDFs to a new document. The file size is too large, and I've noticed that if I go into the PDF Optimizer manually and change the Image Settings so the compression quality is "low" for both Color images adn Grayscale images, it brings the file size down to where I need it to be.
My question is, can I do this in my script somehow? I don't see anything in the Javascript Reference or Acrobat SDK about updating images within document. I'd really like to automate this optimization within my script.
Has anyone ever done this before?
Many thanks in advance!    

Thanks again for your reply!
Well the output folder could change... and really, it would be most ideal to not even save the single PDFs (although it looks like I might have to). All I need to accomplish is to take a folder of PDFs and merge them into one PDF (but it must be optimized and cropped). I don't need the new, saved versions of the single PDFs. I feel like my "automation" solution to this will end up being more tedious than manually clicking "combine" and merging PDFs that way, and applying the crop settings afterward. Maybe I am making this more difficult than it needs to be? Here is what I'm doing:
1. I have a folder level script that executes when Acrobat loads whichs adds two menu items. The first opens up the Batch Sequences menu so the user doesn't have to find them.
2. From here, the user will need to run a batch sequence that will optimize and crop each PDF and save them to an output folder.
3. Now the user will need to run another batch sequence (and choose the output folder from step 2 as the input folder now) that will collect all the file paths of the optimized PDFs.
4. Now the user can use my other menu item from step 1 that will execute a folder level script and merge the PDFs by inserting them into a new document.
5. I can prompt the user here to save the new document somewhere.
It seems like there should be an easier way to do this. Is it not possible to merge the PDFs in a batch sequence and then use the output folder to save the one new PDF (rather than each of the input PDFs)?

Similar Messages

  • How to save an edited PDF in Acrobat Pro without any compression

    Hi,
    I just edited an existing PDF in Acrobat Pro 9 - actually I inserted some high resolution images in TIFF via the Touchup tool.
    What do I have to do to save it without any compression of the TIFFs - I tried a lot, but the outcome is always compressed, showing artifacts.
    Thanks

    First, editing PDFs is really only for minor fixups. There is generally no word wrap or such when doing such editing and often then seem to go downhill fast. To edit text, you have to have the font available. If the file was scanned and the OCR applied was searchable text, the only option to edit what is displayed is with a graphics editor, typically PhotoShop. PhotoShop allows Acrobat to have edited graphics and then be reinserted in the file (I don't do it, so can't give details). ClearScan replaces what is seen on screen in the graphic with the text. In that case, you see all of the text and the corresponding errors (often many). You may want to load a graphic (bitmap) with text showing or use a scan and try the various versions of OCR to see what I am talking about. That may help you see the options. Searchable PDFs is more useful if an original is critical, such as in the legal profession.

  • Iphone 6 photo image compression/ quality loss

    iPhone 6 and 6 plus have pretty remarkable cameras. But oddly, Apple doesn't seem to want you to keep the high quality images and videos you take. As soon as you email let's say a 3.5 mb photo image, you are asked what size you want to email it in and given a series of compression options. Once you make the decision the first time, that decision is permanent. Apple does not really warn you that you are about to permanently, massively compress (destroy) that original image. There should be a better way to preserve original image files. The email compression decision should impact only that email -- not the master image file. But it does.
    Also, if you take an amazing video on your iPhone 6, when you put that video in photostream or in the cloud or email it, there is no warning to you that you've just massively compressed the video. I took a video that was close to 10 mb, emailed it to myself to save it, then had to wipe my phone because of a problem. When i reinstalled and opened the video, it was about 10% of the size of the original video. Original gone. No warning.
    It's sort of odd that Apple would not think to create better menus, options and communication/guidance around image compression.
    Lastly, if you take a picture on your Iphone .. there is NO WAY to know any metadata on that image file -- unless you go to email it and you get that compressino option screen. You can't see anywhere else the image file size. Again, why make such a great camera if all you want is to massively degrade the image files the moment you do anything with them?

    Howdy elkspark,
    If your camera photos still dont look quite right, I would recommend taking a look at this info from the following article to help determine what might be causing this to happen:
    Get help with the camera on your iPhone, iPad, or iPod touch
    Your photos are blurred or out of focus
    If your photos are blurred, out of focus, or have dark spots, try these steps:
    Make sure that the camera lens is clean. If you need to clean the lens, use a microfiber cloth. If you see dirt or debris inside the lens, take your device to an Apple Retail Store or Authorized Service Provider for more help.
    Make sure that there’s nothing blocking the camera lens. If you’re using a case, try removing it.
    With iPhone 6 Plus, a metallic case or magnetic lens could interfere with optical image stabilization. If you have a metallic case or magnetic lens attachment, try taking a picture without it. Then compare the quality.
    Adjust the focus by tapping on the person or object in the preview screen. You’ll see the screen pulse or briefly go in and out of focus as the camera adjusts. In photo mode, try to stay steady when adjusting the focus. If you move too far in any direction, the camera will automatically refocus to the center. In video mode, you can adjust the focus before you begin recording.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Linking text form fields in Acrobat Pro

    I am using Acrobat Pro.  I have successfully entered javascript that links multiple text fields so that when reaching the end of one field it automatically advances to the next.  My problem is that if I am in the middle of a word it will split the word instead of carrying the entire word to the next line.  How do I fix this?

    I'm having a simliar problem except for some reason, if I am typing a word, the sentance will advance to the next field but will be missing a letter and looks like this:
    This is an example of what Acrob
    t is doing.
    There is a letter that disappears and I can't seem to find how/where to fix it. I think it involves something with the java code but I'm not sure...

  • Acrobat Pro: Create PDF Form Export so it's not editable User fills out and info is emailed back to me

    I have zero experience with PDF forms. A client needs to have the email addresses changed in an older PDF form, so I've opened it in Acrobat Pro, changed the existing email addresses and am now stuck. How do I save it so it's not editable by the end-user? Everything I've tried (Distribution via email, flattening, security) have not worked; either the form fields get stripped out or I receive nothing via email and I can still open the distributed form and edit the fields.
    I need it so the end-user will view the form in their browser
    Fill out the fields
    Click submit and the info is sent back to me via email.
    If they download the PDF they can NOT edit it.
    Thanks!
    Tim

    Open the PDF and do the following:  File> Save As> Reader Extended PDF> Enable Additional Features

  • When I OCR two versions of the same document and then compare th documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago

    When I OCR two versions of the same document and then compare the documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago, and the response I received had to do with the quality of the OCR and the scans of the documents.  However, if I use Acrobat Pro XI to save the same documents in Word and then run a comparison in Word all of the changes are marked.  When a PDF is saved as a Word document in Acrobat Pro XI, is a different OCR module being used than the one used in Acrobat Pro XI for text recognition?

    OCR is only for recoginition of the image / picture of text provided by an scanner.
    Content typed into a Word file which is converted to a PDF is (in Word and in PDF) *not* an image  or picture of text - it is the digital text. So, no OCR involved.
    When the "digital" (renderable) text of a PDF's page content is exported to Word no OCR is involved.
    When a PDF's content is from the image output of a scanner and this is a picture of text then OCR comes into play.
    If this content is exported to Word before doing OCR then it is the image that is exported to the Word file.
    Once OCR is performed it is the OCR output that is exported.
    OCR output is (always will be) impacted by "the quality of the OCR and the scans of the documents". 
    Regardless "Compare" is based on a Word file output to PDF1 then edits to the Word file followed by an output to PDF2. You use Acrobat Pro to do a compare of PDF1 & PDF2.
    Paper 1 scanned to image 1 to image 1 in PDF1 that gets OCR 1 and
    Paper 2 scanned to image 2 to image 2 in PDF2 that gets OCR 2
    being processed with Acrobat Pro's Compare can certainly be done.
    But - well you've described what can be observed.
    Be well...

  • Why do images within a PDF look jagged when viewed in Acrobat Pro 10.1.6?

    Using a MacBook Pro running Mac OS version 10.7.5 with NVIDIA GeForce GT 650M 1024 MB graphics card. High-resolution source images look fine in other software, and embedded images in a PDF look fine when viewed on Google Drive, but curves and diagonal lines look jagged when viewed in Acrobat Pro 10.1.6. Checking smoothing options in Preferences only adjusts the position of the jagged edges; it neither enhances nor ameliorates them.
    I created a sample PDF to illustrate the problem I'm having. Created in illustrator, exported to PNG and converted to PDF. Here is a screenshot of the source PNG side-by-side with the PDF I created from it:
    Please note that when I preview the PDF in Finder, and when I view the PDF in Chrome using Google Drive, the image looks fine. Here's a link to the sample PDF:
    http://www.sendspace.com/file/77f5m6
    Any assistance is appreciated. Thanks!

    Unfortunately, as I mentioned in my original post, I've already tried toggling smoothing options. They don't make the jagged edges go away—they just change them slightly. In some cases, as with the sample file provided, it does help smooth the art out, but it never looks as good as it did going in, in a recent project, toggling smoothing options didn't affect the appearance of the image at all. Zoom does not appear to relieve the artifacting.
    A little clarification: this PDF was created from a flat PNG, but I have had this issue with PNGs and TIFFs as well, generated by both Photoshop and Illustrator. To reiterate, the PDFs display fine in other software—Finder preview looks great, and the same file viewed in my browser via Google Drive looks as intended as well. A colleague was able to replicate this issue in Acrobat on his Windows machine. This appears to be a rendering issue specific to Acrobat with regards to the files I use it to create.

  • How can I add a button to add multiple image in PDF from using adobe acrobat pro?

    I have to create a pdf form using Adobe Acrobat Pro X.
    In this form I want to add a button where I can add multiple images to the field.
    I have tried using javascript event.target.buttonImportIcon(); and successfully add an image, but when I want to add the 2nd image it automatically overwrites the previous one.
    Is there any way to solve this issue? I would like to have a form where I can add a lot of images in it. It is possible in word, but we really have to use adobe.
    Thanks

    Hi thanks for your answer.
    I can add multiple button, but if there are 10 images that I wan to add, then I have to create 10 buttons.
    Moreover, the pictures will be placed on top of each other and it means that you cannot see it clearly.

  • Reduce File Size in Acrobat Pro (9.5.5) Corrupts Graphics in PDF Documents - shows up as black image

    Whenever I use Reduce File Size in Acrobat Pro (9.5.5), sometimes some of the images (not all) get corrupted and show up as a black image in the new document.
    Actually, the new reduced document looks okay when viewed in Acrobat, but the problem shows up when viewed in the Preview application on the Mac.
    I'm using Acrobat 9.5.5 with Mac OS 10.8.6
    I've tried re-importing the graphic into a new graphic box, which didn't work.  Thinking there may be some type of corruption with the actual graphic file, I then tried viewing the graphic, then taking a screenshot of it to create a completely new file, and then re-importing the new graphic file into the original document (created in Adobe In Design 5.0.4).  I then export the new document as a pdf, and brought it into Acrobat Pro to do the Reduce File Size.  Same thing happens - black box appears where the graphic was.
    I then tried using the Reduce File Size within the Save As function of the Preview application on the Mac - while the graphic remains intact, many of the other graphics in the document are "reduced" too much, to the point where the image quality is seriously degraded, and therefore not usable.
    Any other ideas?

    Hi Anoop,
    I can share the graphic file, but not the pdf which contains it (as it contains confidential information) - thanks!

  • When creating a PDF in Acrobat Pro it seems to change my reference numbering system???

    I am trying to create a PDF file using Acrobat Pro trial version (before I buy it I need to know if it works for me).  The file I am using is a condensed version of a report so it has some of the tables/figures omitted and therefore the numbering sequence isn't sequential ie.  it can jump from Figure 9-2 to 9-4.  For some reason - when creating the PDF - the program is CHANGING the numbering system of the original file in the body of the document - but the Table of Contents keeps it how I had it.  HELP??!!!  How do I make it just create the PDF exactly how it is in the Word document file without automatically making any changes like that to it?!
    I have tried several ways to create the PDF - in Word - I tried doing it as a Print command, also in Word I tried doing it from there, also I tried creating it from a file right in Acrobat Pro.  I also tried "protecting" the document first - but this didn't work either.
    Thank you so much to anyone who can help!

    You might want to specify what kind of graphics are giving you problems.
    Frame drawings or imported files? If imported, what file type? RGB or
    CMYK? Any spot colors?
    The best graphics are EPS because FrameMaker passes them around the
    Windows GDI unchanged and EPS files can retain spot colors, too. Other
    types of graphics get passed through Windows GDI and converted to RGB
    where the result can sometimes be astounding. In Save as PDF, what's the
    setting for "Convert CMYK colors to RGB?"
    Check also "GetLibraryColorRGBFromCMYK=" in maker.ini and change it from
    "Printing" to
    "None". That seems to get the best results for having what you see on
    screen match what ends up in the PDF.
    There are also color management settings in your Distiller .joboptions
    file that can affect the result. Usually, you want to set Settings>Edit
    Adobe PDF Settings> Color> Color Management Policies to either "Leave
    Color Unchanged" or "Tag only Images for Color Management."

  • How to change PDF document dimensions - Acrobat Pro 9

    Hi,
    I'm trying to figure out how to change the dimensions of my PDF in Acrobat Pro.
    The original artwork was created in Illustrator and the final document is primarily for screen use (not print) so was created using pixels (600x665px to be precise). However when the artwork is created into a PDF, when viewed (and printed) in Acrobat, it is rather large and I want to make this smaller.
    If anyone can advise on this it'd be much appreciated!
    thanks
    HS

    You might play with the Touchup Object tool off the Advanced Editing toolbar.
    Use the tool to select the image. Any of the four corners can be "grabbed" and a mouse drag will let you change the space occupied, on the PDF page, by the image. Not a "fine control" but, sometimes, all that's needed.
    Or, in Preferences > Touchup category - the associated configuration pane permits selection of an installed image editor.
    Now, using the Touchup Object tool's context menu, you can use the "Edit Image..." selection.
    Edit the image and return it to the PDF.
    Be well...

  • Change the .tiff extension to .tif as a default in Acrobat Pro 9?

    I work in the legal industry and we use Acrobat all the time to convert PDFs to LZW compressed B&W Tiff for use in trial presentation software. Lately, we've noticed that Acrobat Pro 9 is saving the files with a .tiff extension rather than the .tif extension. The ".tiff" extension might be great for Mac, but we're in a Windows environment and we bought Acrobat Pro 9 for Windows - not Mac. This is a problem because the Windows software that we are using, TrialDirector 5.2, only accepts a .3 extension such as .tif, .jpg, etc.
    I've experimented with this issue and can't resolve the matter on a permanent level. It appears to be a random occurrence and I can't tell if it's because some PDF files are optimized and others are not or what the secret formula to this is. Even in a batch process, some will be saved with a .tiff extension and others will have a .tif extension. If I change the extension to .tif in the file name during a "save as" the program will continue to save it that way as long as I don't exit the program. Once exited, you have to open Acrobat again, "save as" ".tif" - it may save it that way, it may save it as .tiff, but after deleting the .tiff files and doing a "save as" or batch process again, it will usually save the files with a ".tif" extension.
    Is there a preferences file somewhere in Acrobat or Distiller that can be edited manually, that will keep the extension to ".tif" rather than ".tiff"?
    I really want to avoid having to use a bulk rename utility for the thousands of documents we process considering Acrobat 8 didn't have this problem.

    Bumping this thread up in hopes that someone will have an answer.
    I absolutely hate the fact that Acrobat 9 insists upon using ".tiff" rather than ".tif" under Windows 7.
    This creates problems when existing TIFF files are linked to other publications and all I want to do is change some information in the PDF file and re-export, and instead of overwriting the existing .tif file, it creates a .tiff file which is a distinctly different file, and is not the one being linked to.
    Help?

  • Large images not displaying properly in Acrobat Pro 9

    When creating PDF documents from any software (Illustrator, Corel, InDesign, etc), color objects over 50% of the page size have white fill. If object has an outline, the outline will appear normally, but the fill will be white. I've searched forums everywhere and have found no answer. Most forum topics on this are issue focus on settings in the program that exported the PDF. I am 99% sure this is not an export problem, but is something in Acrobat itself (a missed setting? Corrupt program file?)  
    To provide the best information, I've done a little scientific research. Here is what I know:
    Currently running Acrobat Pro 9.5.5
    This is only happening on ONE install of Acrobat 9. Documents display correctly in Reader X and in Acrobat 9 on other machines.
    Started happening a few weeks ago, I have no idea what changed.
    "Show Large Images" in preferences dialog is checked. Unchecking it and rechecking it does nothing.
    Have installed all available updates to the software
    I experimented with different object sizes. At 50% of page size, objects appeared normal, at 51% filled object disappears.
    Does not affect photos, only affects vector objects.
    I welcome all ideas to fix this.
    ALSO - Am running this on Windows Vista 64 Bit

    Hello? Is there nobody in the Adobe universe that has an actual solution to my problem?
    Other things I've tried to solve this:
    repair the install.
    uninstall and reinstall
    cuss at the computer
    throw a tantrum.
    I will pay someone a whole dollar for a solution that works.

  • Acrobat Pro 9.5.0 crashes on ClearScan OCR but not Searchable Image OCR

    I have Windows and Mac copies of Acrobat Pro 9.5 running on my computer (both version 9.5.0). My computer is an iMac running Mac OS X 10.7.3 (Lion) with the Parallels hypervisor, version 7.0.15055 installed, in which is running Windows XP. As at 11 April 2012, these versions are all the most recent version of the respective software.
    When I try to apply OCR to a scanned image, and select ClearScan as the option, Acrobat Pro 9.5 (Mac) crashes but Acrobat Pro 9.5 (Windows) does not. When it crashes, Acrobat Pro 9.5 (Mac) produces a VERY long problem report which is sent back to Adobe.
    In order to apply OCR to a scanned image in Acrobat Pro 9.5 (Mac), I am forced to change the OCR option from ClearScan to Searchable Image, but this results in a larger file.
    I am aware of the thread at http://forums.adobe.com/thread/920032#4000947 but this has not helped, because I have reformatted the hard drive of my Mac (wiping out all remnants of previous versions of Acrobat), and reinstalled Acrobat Pro 9.5, but the problem persists.
    Can anyone explain the different behaviour and offer a solution?

    Acrobat 9 is not supported on MAC 10.7
    Hence there is nothing much we can do about it. To use OCR functionality on MAC 10.7, please use Searchable Image else please upgrade to Acrobat 10.

  • Why are watermark and background images blurry in Acrobat Pro?

    I've created a header image in Illustrator that incorporates a client's logo and text in a box to use in Acrobat Pro XI (Because you can't insert an image in the Acrobat header/foot function--please let me know if I'm wrong about that). I exported the image from lllustrator as high quality print PDF and as a high quality JPG. The document I am working on is a combination of Word generated text pages and RTF data sets converted to PDFs.  When I try to insert the PDF header I've created it will not work in the data set pages as a watermark or background. It does work as a JPG, but the problem is that the box surrounding the JPG image and text loses its bottom line and the entire image looks blurry. The PDF isn't clear as I'd like it look either.  Any suggestions on how I can fix this would be greatly appreciated.
    Thank you!

    Hello Bill,
    Thanks for the suggestion.  Unfortunately, Acrobat only accepts a limited number of file formats. I used PDF images as much as possible assuming that they'd have the highest resolution.
    The RTF pages wouldn't take a BMP. I've been searching for an plug-in or third party add-on to resolve the issue.

Maybe you are looking for