Convert image to button

Hi All,
Is it possible to convert an image into button and add behaviour script to it? or Is it possible to create a button with icon and events to it? Please suggest.
Thanks,
Vanitha Allwin

http://www.kahrel.plus.com/indesign/scriptui.html
This has been very valuable. This will help you with almost everything you need. Also try ScriptUISprites by Marc Autret.
Also you will need this to make your png.
var f1 = new File( "/Applications/Adobe InDesign CS4/File Name.png" );
var f2 = new File( "/Users/Desktop/_MAC.txt" );
//var f ="/Applications/Adobe InDesign CS4/Scripts/Scripts Panel/New UI/GreenButton2.png";
if ( f1.exists ) {
f1.encoding = "BINARY";
f1.open( "r" );
var buf = f1.read();
f2.open( "w" );
f2.write( buf.toSource() );
f2.close();
f1.close();

Similar Messages

  • Error while converting Image -to- PDF and then to PDF/A

    Hi,
    I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully.
    I'm getting the below error while converting the PDF(that was generated) to PDF/A.
    Caused by: com.adobe.livecycle.output.exception.OutputException: Input Document is a already flat PDF Document
    at com.adobe.printSubmitter.PrintServer.transformPDF(PrintServer.java:307)
    at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFInTxn(OutputServiceImpl.ja va:518)
    at com.adobe.printSubmitter.service.OutputServiceImpl$4.doInTransaction(OutputServiceImpl.ja va:481)
    ... 106 more
    Error OCCURRED: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
    Please give me the solution to convert PDF to PDF/A?

    I've just read a footnote in the API documentation which indicates that the transformPDF function cannot be used for this purpose:
    "GS_Enterprise said on Nov 24, 2007 at 12:03 PM :
    Please note that the parameter "inPdfDoc" for transformPDF assumes that the stream content is an XFA-based PDF, and that it's not an XFA-based PDF with a PDF background (also known as "XFA foreground"). In other words, this function does not convert any input PDF to PDF/A, but only those PDFs generated from an XFA template which does not include any static PDF content as a background."

  • How do I change my birthdate that was entered in on my Adobe App.  I want to convert images to pdf

    How do I change my birthdate that was entered in on my Adobe App.  I want to convert images to pdf

    What Adobe app?

  • Converting Images to CMYK for Print Publication

    When in my workflow should I be converting images to CMYK for print publication?
    Currently, I shoot RAW photographs with my DSLR in Adobe RGB, import the images into Photoshop for manipulation and then convert the final, sized image to CMYK before placing it in my Indesign document. Before going to print, I convert my files to PDF using the [PDF/X-1a:2001] preset. I use a calibrated system with a profile set for my monitor.
    Since many of my pictures have shades of green, I'm often disappointed with the conversion to CMYK because I lose saturation and brightness. Am I doing anything wrong? Is there a better way of preserving the quality of colour in my images when going to a commercial printer?

    To see in InDesign what color shifts will occur, use View=>Proof Colors.
    I would also recommend View=>Overprint Preview.
    Yes there are color shifts when converting RGB to CMYK, but those are due to the fact that the gamut of CMYK is significantly less than AdobeRGB or even sRGB. The same color shifts going to CMYK will occur whether you convert the image in Photoshop or in InDesign during PDF export or at the RIP.
    Keeping the color in ICC color managed RGB has the advantage that last minute changes can be made as to what CMYK printing conditions are used, i.e. all CMYK is not the same. Furthermore, if you convert RGB to CMYK early in the workflow, you lose the ability to maintain the color gamut for display of the PDF as well as for printing to high fidelity color devices, i.e., offset or digital (especially inkjet) devices that have extra colorants such as light cyan, light magenta, orange, and/or green to dramatically expand the gamut. Once you lose the gamut in your imagery via conversion to CMYK, you can't go back.
              - Dov

  • Images as Buttons and Image Resizing in mxml

    Sorry for all the questions but I've run into a problem when trying to create buttons that are just an image in mxml. When I first tried this I couldn't find a way to get the border around the button to dissapear so it ended up looking like my image had an extra black border around it. Then someone here suggested I just set the buttonMode property of an mx:Image to true which ended up working fine to a point. The problem I'm having is that even if I make the tabEnabled property of the image (that I'm using as a button) true, I can't tab over to it. Is there a way to either get rid of the black borders of a button or to make it so I can tab over to an image I'm using as a button?
    My second question has to do with image resizing. Lets say I have an image of a horizontal line that I want to put at the top of the mxml page, and I want it to extend the full length of the page, even after the user has resized the browser. Is there a way to do that? I've tried putting the width as 100% or giving the image a "left" and "right" value so that presumably it would be stretched to fit within those but nothing has worked so far. Is there no way to do this or am I doing something wrong?
    Thank you for any help you guys can give.

    Of course, sorry about that. So the following is a barebones example of how I currently implement buttons and images as buttons:
    <mx:Button id="facebookButton" icon="@Embed(source='image.png')" width="30"/>
    <mx:Image buttonMode="true" id="button" source="anotherimage.png" enabled="true" click="{foo()}"/>
    And within the image I've tried making the tabFocusEnabled property true but to no avail.
    The following is how I've tried stretching out an image across the whole page:
    <mx:Image source="yetanotherimage.png" width="100%" scaleContent="true"/>
    <mx:Image source="yetanotherimage.png" left="10" right="10" scaleContent="true"/>
    Is this more helpful?

  • How can i convert image into pdf  file

    Hi Friends,
    I want to convert image file(i.e. jpeg,bmp,gif) into pdf file using java apis OR is there any tool which can convert it & which we can integrate into our java application
    Thanks in adva.

    Is there any solution to this case.....?

  • Keep the same name while converting images to PDF

    I am using Automator to convert images to PDF. The new images are in a different folder, but it is asking for an output file name. Can't I tell it to just keep the same name as the old file?

    leaving the exact format, can you explain what does it mean by correctly formed Arabic fonts ?
    What I did is created a text document in Arabic and converted it to PDF and the same file is converted back to word and the results were all junk..

  • How to convert image to binary format

    Hi all,
      We have developed an Employee search  mobile web application in .net which is hosted on an exposed IP server, we need to show the employee data along with the image of the employee on mobile.
    When we run this application through our desktop we are able to see the image of the employee since we are doing this through <b>intranet</b> , but when we try to access the same from any mobile device we are able to see only the data but no image, since we are doing this through <b>internet(exposed server).</b>
    Please suggest some way to get this image,
    is there any<b> function module in ABAP</b> which can <b>convert image to binary format</b>
    so that we <b>export binary data</b> to .net application

    Hei evryone!
    CAn anyone pls help me on how to solve this error:
    java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkSecurityAccess(Unknown Source)
         at sun.plugin.security.ActivatorSecurityManager.checkSecurityAccess(Unknown Source)
         at java.security.Security.check(Unknown Source)
         at java.security.Security.insertProviderAt(Unknown Source)
         at java.security.Security.addProvider(Unknown Source)
         at CryptoTest.processFile(SwingApplet.java:68)
         at CryptoTest.<init>(SwingApplet.java:65)
         at SwingApplet.init(SwingApplet.java:39)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Is it allright for a swing code to access local resources? like in my case i want my swing app to decrypt and encrypt an image file but when i tried to access the method for decrypting and encrypting i got this error message on my console. Do i have to make my code signed before i could write/read a file on my hard drive?
    Any help / suggestions would be much appreciated.Thanks!

  • Can I batch convert images in a folder hierarchy?

    I can't seem to be able to create an Action or Droplet in Photoshop CS5 that will batch convert images in situ in a hierarchy of folders. In the Photoshop Actions you have to specify an explicit destination, and there's no "save back to the same place" option that I can find.
    I used to be able to do this with ImageReady CS2, but Tiger is going to kill that. Help!

    If you want to give it a try, paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS4 or /Applications/Utilities/Adobe Utilities-CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
    // 2011, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    // get document-path and -name; thanks to xbytor;
         var myDocument = app.activeDocument;
         var myDocName = myDocument.name.match(/(.*)\.[^\.]+$/)[1];
         var myPath = myDocument.path;
    // save for web options;
         var webOptions = new ExportOptionsSaveForWeb();
         webOptions.format = SaveDocumentType.COMPUSERVEGIF;
         webOptions.optimized = true;
         webOptions.colorReduction = ColorReductionType.ADAPTIVE;
         webOptions.dither = Dither.NONE;
         webOptions.quality = 100;
         webOptions.includeProfile = true;
         webOptions.matteColor = new RGBColor();
         webOptions.matteColor.red = 255;
         webOptions.matteColor.green = 255;
         webOptions.matteColor.blue = 255;
    // export;
         myDocument.exportDocument(new File(myPath+"/"+myDocName+".gif"), ExportType.SAVEFORWEB, webOptions);
    Edit:
    The Script could be recorded into an Action.
    It would also be possible to create a Script that offers a dialog for File- or Folder-selection and subsequently operates on all selected/contained files of specified formats, but that would be a different approach from the Droplet.

  • Converting image sequence

    Dear Sirs,
    when I convert image sequence into a ProRes 4444 + Alpha using Compressor i noticed a difference in brightness with the original content.
    This happens every time i elaborate in After Effect a special effect.
    The images in output from AF are identical to the original, after the conversion there is this difference.
    I tried to create a custom ProRes 4444 + Alpha setting changing to "none" the gamma conversion into the Quick Time settings panel, nothing changes.
    Can you help me to find the right solution?
    thank you
    Aldo

    Thanks, Nick, that already doubles or more my knowledge.
    As far as final form, could be one of many. Leading candidates are QuickTime (.mov), MPEG (.mp4) or iPhone (.m4v). (Is iPhone format just a special case of MPEG-4?)
    I'm generating the frames as .png files using Perl's GD library. They are very compact and in fact the primitive QuickTime movies I make from them, with all media included in the file, are still very small. (E.g. a 600-frame movie is half a meg.) Converting each frame to JPG actually increases the size dramatically (could spend more time tweaking the JPG conversion).
    At first I thought .png would be good because I could play them easily in an iPhone app. But then I started thinking perhaps it would be better to turn them into a movie and then tell the iPhone app "play movie" rather than handle all the timing of rendering each frame myself. And synchronization of audio... a big can o' worms to roll your own.
    I have had the experience twice of upgrading QuickTime to QuickTime Pro only to see the Pro-ness vanish in the next QT upgrade. @#$%! But you may be right that QT Pro would suffice.

  • Image as Button

    I need to use image as a button control. I cannot use buttonMode=true property as that affects accessibility implementation.
    There are many such images to be used as button in the application and so cannot use upskin, downskin properties of Button with @Embed. I need a dynamic way of using image as button but without buttonmode property.
    Can any one please suggest with sample code?
    Thanks,
    Uma

    I found the following statement -
    ...using Mouse.cursor = MouseCursor.HAND to set the hand and back to Mouse.cursor = MouseCursor.AUTO to reset to default
    The question was somewhat different, but this was the original page -
    http://stackoverflow.com/questions/7835657/flex-usehandcursor-in-child-component-of-parent -with-setcursor

  • How to put images on buttons?

    I am currently working a project and need to mount an image onto a button, so when the image is clicked on it makes the button event work?

    set icons? , do i have to have the image in the same
    folder as where the code is saved? I have not been
    able to find any code showing how to apply images
    onto buttons on a GUI.Did you atleast read reply 2 and 4?Have you ever read the JButton API?There's no necessity that the image has to be in the same folder.You use have to specify the absolute path of the image when you create an instance representing it.

  • How to set images as buttons?

    Hi,
    I am trying to create a GUI in which each frame/panel has few buttons.I am able to put an icon in the button.Now please can u tell me how one can set an image as button?I am using netbeans to do the above.
    Thanku..

    tara_730 wrote:
    I am able to put an icon in the button.
    can u tell me how one can set an image as button?Does not compute. An Icon is an image, so if you can put one on a button, you're done. What are you trying to do, and what have you managed to accomplish, in detail.

  • How to convert image to array pixel values in java

    I would like to know how to convert image into arrary of pixels in java ?
    which API should i use ?
    please give me link to a sample program !

    I find the most efficient way to just walk over the image and call getRGB(x,y) on every pixel, more so than Pixelgrabber. If someone knows a more efficient way, give me a beep.

  • CONVERTING IMAGES

    How do I convert an image pdf file to jpg format?

    Hi Doggydaddyo,
    To convert image PDF file to .jpeg file, you need to use the complete PDF solution Adobe Acrobat.
    For more information kindly visit : http://www.adobe.com/products/acrobat.html?promoid=JOLIR
    let me know if you ahve any other question.
    Regards,
    ~Pranav

Maybe you are looking for

  • Why can't I hook up to my own WiFi network?

    I am unable to hook up to my own home WiFI from Brighthouse. I have my phone set on auto to ask to join networks and always in the past it has gone immediately to my network, but now says" unable to join network." Is this an iPhone problem, Brighthou

  • How does the Object Reference change in this code ?

    Hi Folks, This is my code : package assignments; class Value      public int i = 15; } //Value public class Assignment15      public static void main(String argv[])           Assignment15 t = new Assignment15();           t.first();      public void

  • Plot to different layers in Origin

    Hi everyone, I'm trying to figure out how to plot data I collect in Labview to graphs in Origin.  My real program collects 5 columns of data and sends it to a new workbook in Origin.  My problem is with plotting columns to separate layers.  I attache

  • How to enable adobe reader8 call webservice

    i use livecycle to created blank form and connected to webservice by using wsdl file i drag and drop textboxs and button to use them to send and recive data from webservice it's work good on adobe pro 8 good but not work on adobe reader 8 how to enab

  • View hidden files?

    how can you view hidden files on the iBook? my ipod is hidden, or doesnt show up...