Is it possible to downsample an image with javascript?

A colleague of mine has created a PDF with functionality in place to allow the user to add pictures into predetermined locations in the document.  His concern is that without the ability to downsample these photos automatically, the users may end up attaching photos from their 10+ MP cameras and this would result in enormous PDF documents.
Is it possible to downsample these images automatically with javascript?  The dimensions of the images can remain unchanged, but the resolution must reduce to bring down the potential size of the resulting PDF.
Any advice or pointers would be welcome.
Thank you

Are there any other options you can think of to accomplish this using the Acrobat API and not necessarilly using javascript exclusively?  Could a plug-in accomplish this?

Similar Messages

  • Is it possible to use sliced images with fluid grids CS6?

    I have 2 sliced images that I want to use in my page. The site has been designed with fluid grids CS6. As soon as the page is made smaller 1 of the images shrinks while the other remains the same size. Is there any way to make this work or is it just not possible using fluid grids?

    There's nothing on this page.
    http://www.lavishvegas.com/las_vegas_barsx.html
    If you want images to rescale to device width, the parent container must be fluid (% width). 
    The images need a CSS max-width of 100%. DW does this for you when you create a Fluid Grid layout. 
    Also, the native image must be inserted into the HTML foreground  with no stated height or width attributes.  If you set the height/width, it won't rescale to viewport width.
    Working example:
    http://alt-web.com/FluidGrid/Fluid2.html
    Nancy O.

  • Possible to have new image with each new dowload?

    How can I have one image on a page get replaced with a
    different, but exactly the same sized, image each time someone
    downloads the page? I want it to cycle through about 6 images, or
    in random order, either way. Any online tutorials how to do
    this?

    brainfillet wrote:
    > How can I have one image on a page get replaced with a
    different, but exactly
    > the same sized, image each time someone downloads the
    page? I want it to cycle
    > through about 6 images, or in random order, either way.
    Any online tutorials
    > how to do this?
    There are millions of them. Google "random image script".
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • Is it possible to create a panel with JavaScript?

    Hi friends
    As I´m studying JavaScript and the user interface creation...would like to ask (more for curiosity):
    Is it possible to create a new panel for Illustrator using JavaScript? Or this is only possible using C++?
    (in the Window Class UI we have the "palette" creation method..so wondering the result of it too)
    Thank you a lot
    Gustavo

    Hi Larry
    Thank you a lot for sharing this reference. This has alternative explanations from the JavaScript Tools Guide that already come with the Extended Script Toolkit SDK (I´m reading this and finding very very useful).
    My question, however, is not covered in any of the manuals.
    I´d like to confirm if a panel (like Brushes, Swatches, Appearance and Layer Illustrator panels) can be made only via C++??? (and not via JavaScript).
    Can I assume the Script UI capabilites in JavaScript can resume itself on creating dialog boxes only (not panels that persist, keep opened in the software, also could be docked in the side of app)?
    Thank you
    Gustavo.

  • Problems with manipulating an SVG image with JavaScript.

    I've created a website where I'm using jQuery to clone and manipulate SVG content to create multiple different images within the page (I'm also making use of Keith Wood's SVG libraries to help make jQuery work with SVG).
    http://httpflies.com/
    This seems to be working fine initially. However, when a user clicks the graphic I then clone the clicked graphic and place that in another part of the page. At this point part of SVG content is lost. The SVG contains a number of vectors and a bitmap (for a drop-shadow). The vectors all disappear but the bitmap remains.
    I've checked it out in the dev tool and the SVG content is being cloned (it seems) and can be inspected and Firefox seems to think it's in the correct part of the page etc. Yet it's not visible.
    In terms of the jQuery involved it's just this:
    $('#'+hash).clone().attr('id','').prependTo(targetElement);
    It works fine in Chrome, Safari and Opera but I'm looking at FF 24.0 on Mac and FF 23 on Win7 and both are doing the same thing. I'm getting no errors in the console either! :-S
    Thanks in advance to anyone who can shed some light ;-)

    OK this was simply down to me not being careful enough about making sure the ID's I was using in the SVG (to define gradients etc) weren't remaining unique across all the cloning and appending.
    That's not just the ID's of the SVG elements themselves but the <lineargradient> elements within those SVG elements which I was referencing from within those same SVG's.
    Seems like some debugging tools related to this kind of thing would be useful as it wasn't really clear that this was the problem. Just to know that there are multiple identical ID's within a DOM would be very useful.
    Anyway sorry about wasting anyone's time and if you have a similar problem, think about those ID's! ;)

  • Export a PDF to an image with transparency

    Hello,
    I'm trying to export a PDF (which contains a logo with 4 paths) as an image with transparency. In my case I use the PNG because it supports the transparency. As my logo is defined with paths it should be possible to create an image with transparency.
    Maybe this is a limitation and Acrobat cannot create image wich supports transparency.
    Anyone have an idea?
    Thanks in advance,
    Joe

    @Joe:
    That's a really pity.
    Have you found any other software which can do this job.
    I searched yesterday but didn't find anything.
    @Doc Maik
    b)
    I have a (lot) PDF containing a single image which has a transparent background.
    You can check that in Acrobat by menu: Edit - Preferences - Page Display - Show transparency grid
    I need to have a PNG or TIFF (these two formats allow transparency) of that image.
    That's all but as it seems to much for Acrobat to handle.
    "Save as ..." doesn't work in case of transparency!
    Thanks anyway.
    Best regards
    Norbert

  • Image With Title

    Hi, how are all of you? I wonder if it is possible to have an Image with Label or Title that display along with the Image itself as a single object.
    Thanks
    .:.Wahab

    Sure. In this example the image path and caption are in an XML file, and I am putting the images in:
    1) a HorizontalList
    2) a List
    3) individual Panels using a Repeater
    The images I am using are in a folder "images" under the folder containing MainApp.mxml
    --------------- data.xml ---------------------
    <?xml version="1.0" encoding="utf-8"?>
    <photos>
        <photo>
            <image>images/red30_30.JPG</image>
            <caption>Red Square</caption>
        </photo>
        <photo>
            <image>images/green30_30.JPG</image>
            <caption>Green Square</caption>
        </photo>
        <photo>
            <image>images/blue30_30.JPG</image>
            <caption>Blue Square</caption>
        </photo>
        <photo>
            <image>images/black30_30.JPG</image>
            <caption>Black Square</caption>
        </photo>
    </photos>
    ------------------ MainApp.mxml ------------------------
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="photosRequest.send();">
      <mx:Script>
        <![CDATA[
          import mx.rpc.events.ResultEvent;
          import mx.collections.XMLListCollection;
          [Bindable] private var xlc:XMLListCollection;
          private function photosHandler(evt:ResultEvent):void{
            xlc = new XMLListCollection(evt.result..photo); 
        ]]>
      </mx:Script>
      <mx:HTTPService id="photosRequest" url="data.xml" result="photosHandler(event)"
        resultFormat="e4x"/>
      <mx:HBox width="100%" horizontalAlign="center" horizontalGap="30">
        <mx:HorizontalList dataProvider="{xlc}" rowHeight="100"
          columnWidth="100">
          <mx:itemRenderer>
            <mx:Component>
              <mx:VBox horizontalAlign="center" verticalAlign="middle">
                <mx:Image source="{data.image}"/>
                <mx:Text text="{data.caption}"/>
              </mx:VBox>
            </mx:Component>
          </mx:itemRenderer>
        </mx:HorizontalList>
        <mx:List dataProvider="{xlc}" rowHeight="100"
          columnWidth="100" height="405" width="110">
          <mx:itemRenderer>
            <mx:Component>
              <mx:VBox horizontalAlign="center" verticalAlign="middle">
                <mx:Image source="{data.image}"/>
                <mx:Text text="{data.caption}"/>
              </mx:VBox>
            </mx:Component>
          </mx:itemRenderer>
        </mx:List>
        <mx:HBox>
          <mx:Repeater id="rp" dataProvider="{xlc}">
            <mx:Panel title="{rp.currentItem.caption}">
              <mx:Image source="{rp.currentItem.image}"/>
              <mx:Text text="{rp.currentItem.caption}"/>
            </mx:Panel>   
          </mx:Repeater>
        </mx:HBox>
      </mx:HBox>
    </mx:Application>

  • How to mark (psd) Images with the Circle Symbol without duplicating them

    I would like to import my layered images in Aperture.
    The problem is i would like to further adjust them in photoshop cs3 without creating a duplicate.
    Is there a possibility to mark this images with the Circle Symbol (for edited with external editor) or do I really have to open each image than close again, delete the master and then the remaining image with the circle can be opened and further enhanced in Photoshop without duplicating the image.
    Another example:
    I like to open a psd file within aperture with: edit with Adobe Photoshop CS3.
    The Image should open without being duplicated. Then I could drag the layer into another PSD document and close it again.
    Right now I would end up with a Master Duplicate which I have to delete afterwards.
    I know I could use referenced files and say show in finder but I like managed better,
    also:
    Show in finder does show you only one image (I like to do that to 5 or 10 images at once).
    bc

    Like I said if you want to get into the programming business you can modify the aperture database directly but I don't know of an easier way with managed masters. You can always just do your workaround to files that you are actually working on and you only need to do it once.
    Sorry there is no answer to easier answer to deal with all of them at the same time. At least none I can think of off the top of my head.
    RB
    Ps. Lightroom can just open your PSD files but that is an apples and oranges thing. Lightroom is not trying to manage your masters for you in a managed library an ensure that nothing modifies them, if you are ok with that method than referenced files should be ok with you as well, you can always use referenced for your legacy PSDs and use a managed methodology for your new images going forward starting with the source image.

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image,

    I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • Is it possible to submit an image file with PDF form?

    Hello,
    I know that Acrobat does not offer a field for image file submission.
    whether there are workarounds to solve this problem?
    I have found suggestions regarding place an image to button icon:
       event.target.buttonImportIcon();
    but I can't understand is it possible to submit this image to server (Reader supports PDF only).
    Any advices?
    Yury

    Hi Yury,
    Yes, that's correct you can create a button and add a script to it that would prompt the user to select an image file when that button is clicked. Then that image can be displayed using the same button (buttons can show either an image or text).
    The script in question is:
    event.target.buttonImportIcon();
    You need to add it as an Run a JavaScript-action to your button, triggered by the MouseUp event, and of course set the button's layout.
    Please refer to this link : https://acrobatusers.com/tutorials/how-to-create-a-button-form-field-to-insert-a-pdf-file
    On submitting the image it gets embedded with the PDF.
    If the users are using Acrobat they will be able to view the image in the PDF, however if they are using only Reader, you will have to create the form using LiveCycle & then save it in a Reader Extendable Format.
    Regards,
    Aadesh

  • Possible to place subtitles beneath the image with 16:9?

    Hi everybody,
    I couldn't find away to put subtitles beneath the image with 16:9 like it would be possible with such a video in FCP: having the 16:9 video in a 4:3 image, placing the subtitle in the black under the image - the issue with FCP is that later the text becomes blurry ...
    Any ideas..? best, s

    If you're looking to adjust the positioning of subtitle text based on the playback system's aspect-ratio, no, DVDSP is not able to do this. This is made even more frustrating by the fact that this was possible in the Spruce product that DVDSP is based on and because many clients demand what you're asking for (subtitles always appear under letterboxed video on 4:3 monitors).
    The only viable 'alternative' that I've found is to adjust the Y offset of the subtitle stream so that the bottom line (or only line) is in the letterbox area. The downside to that is, on 16:9 displays, the subtitles appear very low (though I've never encountered a setup where they are ever cut off.
    If some sample code helps, this is what I use:
    // Begin Font & Formatting Data
    $FontName = Arial
    $Bold = True
    $FontSize = 28
    $ColorIndex1 = 7
    $ColorIndex2 = 1
    $ColorIndex3 = 1
    $ColorIndex4 = 3
    $TextContrast = 14
    $Outline1Contrast = 15
    $Outline2Contrast = 15
    $BackgroundContrast = 0
    $HorzAlign = center
    $VertAlign = bottom
    $XOffset = 0
    $YOffset = 20
    $TapeOffset = True
    // End Font & Formatting Data

  • Is it possible to edit multiple images description, time, title with new OSX Photos? I find this option very useful in Iphoto

    Is it possible to edit multiple images description, time, title, with new OSX Photos? I find very useful this option in Iphoto

    why? i find this opportunity very useful, there is an alternative way?

  • With the latest iPhoto software is it possible to 'flip' an image or as some say do a 'mirror image' of the photo?

    With the latest iPhoto software is it possible to 'flip' an image or as some say 'mirror image' a photo, meaning to change it from left to right to right to left, or vice-versa.
    thanks

    No - but with preview (included on your Mac) you can and you can set Preview as the external editor for iPhoto - so I guess you can with the latest or any version of iPhoto
    LN

Maybe you are looking for