Exporting document as jpeg using kAIExportDocumentAction creating html file also

hi,
I used this action (kAIExportDocumentAction) to export the document as jpeg.And it is  creating a html file aslo.
And also it not prompt the "JPEG Option" dialogbox. When I set the kDialogOff to kDialogON it shows first the" Export Dialog" .
is there any way to get only "Jpeg Option" dialog box while exporting through this action?
plz Help!!!
here are the code ....
ai::FilePath filePath(ai::UnicodeString("C:\\Documents and Settings\\rudreshp\\Desktop\\Export\\rudresh\\hi.jpeg"));
AIActionParamValueRef actionParam;
//create a new action param value.
sAIActionManager->AINewActionParamValue(&actionParam);
//include the path where to save
error = sAIActionManager->AIActionSetStringUS(actionParam, kAIExportDocumentNameKey, filePath.GetFullPath() );
error = sAIActionManager->AIActionSetString(actionParam, kAIExportDocumentFormatKey, "JPEG file format");
error = sAIActionManager->AIActionSetString(actionParam, kAIExportDocumentExtensionKey, "jpg");
error = sAIActionManager->AIActionSetBoolean(actionParam, kAIExportDocumentSaveMultipleArtboardsKey, false);
error = sAIActionManager->PlayActionEvent(kAIExportDocumentAction,  kDialogOff,  actionParam);
//delete the actionParam
error = sAIActionManager->AIDeleteActionParamValue(actionParam);

The export document action is an action for exporting the doument as you have seen, it is not a Export Jpeg action.
So, no it is not possible with the export action.

Similar Messages

  • How to set "embed icc Profile" option  to export document as JPEG

    Hi All,
    While exporting the document as jpeg, through File->Export, there is an option "Embed ICC Profile" as figure shows.
    How to set it if I am exporting the document through my program in which I rasterize the document and used 
    the sAIImage->AsJPEG(raster, jpegDataFilter, params);
    I didn't find any option in AIRasterizeSettings or AIImageOptJPEGParams to set this flag.
    plz anyone suggest me how to do so.
    Thanks,
    Rud.

    thanks for you through out help.
    I use the folowing code which executing properly,but there is no effect on JPEG whether the value of jpegparam.s.jpeg.embedICCProfile is 0 or 1.
    /////Start
    ASOptimizationSettings jpegparam;
    jpegparam.fileFormat = asffJPEG;
    jpegparam.s.jpeg.embedICCProfile = isICCProfileEmbeded;
    ASInt32 optID;
    optID = sAIOptSet->GetUniqueOptimizationSettingsID();
    error = sAIOptSet->SetOptimizationSettings(optID, &jpegparam); // after executing this line error = 0
    /////End
    I guess it would  work when we export document as jpeg through AIActionManagerSuite
    not with  rasterizing the layer's art and then exporting them as JPEG  using AsJPEG().
    thanks

  • Can I use Photoshop Elements 13 to create HTML file?

    Can I use Photoshop Elements 13 to create HTML file?

    See Barbara's answer in your duplicated post: How can I save a Photoshop Elements 12 file as HTML?
    No difference with PSE13.

  • How do I prevent CS4 from creating HTML files on export of an image?

    Everytime I export an image i am getting a html file created too.  It is annoying having to delete them manually every time, and there seems to be no option to turn this feature off.
    Generally I dislike CS4 compared to Macromedia Fireworks v8. 

    You need to select "images only" in the dialogue box when you choose Export
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Create HTML file that can display unicode (japanese) characters

    Hi,
    Product:           Java Web Application
    Operating system:     Windows NT/2000 server, Linux, FreeBSD
    Web Server:          IIS, Apache etc
    Application server:     Tomcat 3.2.4, JRun, WebLogic etc
    Database server:     MySQL 3.23.49, MS-SQL, Oracle etc
    Java Architecture:     JSP (presentation) + Java Bean (Business logic)
    Language:          English, Japanese, chinese, italian, arabic etc
    Through our java application we need to create HTML files that have to display unicode text. Our present works well with English and most of the european character set. But when we tried to create HTML files that will display unidoce text, say japanese, only ???? is getting displayed. Following is the code we have used. The out on the browser displays the japanese characters correctly. But the created file displays only ??? in place of japanese chars. Can anybody tell how can we do it?
    <%
    String s = request.getParameter( "txt1" );
    out.println("Orignial Text " + s);
    //for html output
    String f_str_content="";
    f_str_content = f_str_content +"<HTML><HEAD>";
    f_str_content = f_str_content +"<META content=\"text/html; charset=utf-8\" http-equiv=Content-Type></HEAD>";
    f_str_content = f_str_content +"<BODY> ";
    f_str_content = f_str_content +s;
    f_str_content = f_str_content +"</BODY></HTML>";
    f_str_content = new String(f_str_content.getBytes("8859_9"),"Shift_JIS");
    out.println("file = " + f_str_content);
              byte f_arr_c_buffer1[] = new byte[f_str_content.length()];
    f_str_content.getBytes(0,f_str_content.length(),f_arr_c_buffer1,0);
              f_arr_c_buffer1 = f_str_content.getBytes();
    FileOutputStream l_obj_fout; //file object
    //file object for html file
    File l_obj_f5 = new File("jap127.html");
    if(l_obj_f5.exists()) //for dir check
    l_obj_f5.delete();
    l_obj_f5.createNewFile();
    l_obj_fout = new FileOutputStream(l_obj_f5); //file output stream for writing
    for(int i = 0;i<f_arr_c_buffer1.length;i++ ) //for writing
    l_obj_fout.write(f_arr_c_buffer1);
    l_obj_fout.close();
    %>
    thanx.

    Try changing the charset attribute within the META tag from 'utf-8' to 'SHIFT_JIS' or 'utf-16'. One of those two ought to do the trick for you.
    Hope that helps,
    Martin Hughes

  • How do i export a single jpeg frame from a video file in final cut x

    how do i export a single jpeg frame from a video file in final cut x

    You can also use the 3 finger method of COMMAND+SHIFT+4, then drag across what you want to copy from the image. That will show up on your desktop, which then you can edit using Photoshop, if you want too.
    You can then change the file format from a PNG to either a .JPG or TIFF or even a Photoshop image.
    Make sure, you have stopped the playback, to what you want to save as a still.
    Either method works, to make a still image from video.

  • I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    Hi rmarchione,
    Can you try restoring preferences and let us know if it helps?
    Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6
    Thanks,
    Preran

  • What export settings do I use to creat a .mov from a .MTS file?

    Hello!
       I have a .MTS file that needs to be exported to a .mov file for online submission guidelines. The picture quality is bad when there is movement. I inserted screen shots of the codecs for the native .MTS files and the export settings I used for a .mov files. I played around with the settings a lot. Thank you so much to anyone who helps, I really appreciate it :¬)

    I will drink to that...

  • Dumb PHP ? How do I use PHP in .html files.[solved]

    I've googled but I just seem to be missing it.
    Could someone please point me to documentation or tell me what/how do I enable the Apache server to process inline php in .html files?
    Last edited by FeatherMonkey (2008-03-25 16:51:21)

    http://www.desilva.biz/php/phpinhtml.html
    Instead of using htaccess, you can just change httpd.conf.
    Last edited by lucke (2008-03-25 16:02:56)

  • How to create html files while the request to a jsp file of same

    Hi..
    i need to create html thumbnails during the runtime for a jsp page. so that i can display it in a table (number of pages.). For that, i need to create html pages for each and every request to that jsp file with different data. please help me in this..
    Thanks
    Suresh S

    I believe you will need to more clearly describe what you are trying to do and what the problem is that you are having before you get a reply to your question.

  • How to Use or Create XSD files in Crystal Reports XI R2 designer

    Hi,
    I have a crystal reports  application which was developed using  .Net crystal report designer, where XSD is used .
    now we have to develop the same application using Crystal Reports XI R2 designer , here i could not find any option for creating or using  XSD files , can you give any suggestions on that
    regards,
    kathyaini

    Hi Kathayini,
    Thanks for your prompt reply.
    We can use the existing XSD which are present in .Net
    But with current versions of crystal we doesn't have the feature to create XSD files at crystal designer level.
    So, it is suggested to use the XSD files which are present in .Net and  can also create new  XSD files.
    Let me know if you have any further queries.
    Regards,
    Naveen.

  • How to use Open/Create/Replace File.vi

    How to change Open/Create/Replace File.vi to Open File?

    Use the routine Write Characters to File.vi found under the File IO palette. It has a boolean control on the front panel. If this is set true, data is appended to the end of an existing file, or a new one is created if the file doesn't exist. If the control is set to false, the file is always created new--overwriting any existing file with the same name.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can I import Muse-created html files into a new Muse site file?

    Due to a crash, I lost my most recent Muse site with many new changes. I do have my latest html files, which were created in Muse... is there a way to import the html into the old Muse site so that I don't lose my recent updates? Please advise. (I do have a time machine backup, but unfortunately, it only has the old Muse file.)

    Unfortunately there is no way to create a muse file from the HTML files.

  • Converting a pages document to jpeg using Mavericks

    How to convert and save a Pages document to a jpeg document using Mavericks.
    Thanks

    Export the Pages document as PDF best. Open the PDF in Preview (thumb nail mode). Select the thumbnail that you want Preview to convert to jpeg. Choose File > Export To… and control your jpeg quality and destination from the export dialog box.

  • How to create html files using Swing

    I am developing a billing system in java. I want to generate cash memo and other related documents in HTML format. I have explored html package in swing but without result. Please help me.
    Arshad

    Hi,
    I agree with the previous poster. An additional way of generating HTML would be to directly write it. Class SHTMLWriter in package com.lightdev.app.shtm of application SimplyHTML at http://www.lightdev.com/template.php4?id=3 gives this opportunity.
    With this, you can do something such as   /**
       * example of synthesizing HTML code to a Writer using
       * class SHTMLWriter
       * @param fileName the name of the file to write HTML to
      public void writeHTML(String fileName) {
        try {
          FileWriter fw = new FileWriter(fileName);
          SHTMLWriter w = new SHTMLWriter(fw);
          w.startTag(HTML.Tag.HTML.toString(), null);
          w.startTag(HTML.Tag.BODY.toString(), null);
          SimpleAttributeSet set = new SimpleAttributeSet();
          set.addAttribute(CSS.Attribute.FONT_FAMILY, "SansSerif");
          set.addAttribute(CSS.Attribute.FONT_SIZE, "12");
          w.startTag(HTML.Tag.P.toString(), set);
          fw.write("some text");
          w.endTag(HTML.Tag.P.toString());
          w.endTag(HTML.Tag.BODY.toString());
          w.endTag(HTML.Tag.HTML.toString());
        catch(Exception e) {
          e.printStackTrace();
      }The HTML output is hard coded in this example. Certainly any HTML code can be created dynamically/programmatically instead. Class SHTMLWriter is partly meant as a convenience class for writing HTML. One can just through start and end tags as in above example. In the start tag any valid AttributeSet can be given.
    HTH
    Ulrich

Maybe you are looking for

  • Process for F.5D & 1KEK

    Hello, Can  anyone please provide a document on the detailed explanatory procedure for F.5D & 1KEK process. Thanks in advance.

  • JSF Page Sizing

    Hi, Can anyone tell me how to set the page size and attributes for a web page. I am using Netbeans with VWP and am new to web applications, I am trying to create a Login page which is say 400x300 in size and without the usual buttons, toolbars etc on

  • Bug in LabVIEW 2013 RTETT Download

    I've called this in to NI, but am posting it here in case you've downloaded LabVIEW 2013 before they fix the problem. Downloading the toolkits from ni.com/trylabview usually is a three-step process.  First, you download a "downloader", a small progra

  • Firefox crashes in safe mode after clean install

    Crash ID: bp-554928df-de36-4d6c-8965-d4bd02150127 Hi, just recently my Firefox 35 has been crashing at launch even in safe mode on Mac Os X Mavericks 10.9.5 on a Mac Mini 2.3 Ghz Intel Core i5. I have tried: - deleting firefox and mozilla folders in

  • Db_connect error, WPs die

    Hi, I was trying to migrate a local installation to domain installation. But, it wasn't good. I tred to go back to local installation again, now I am having problem which WPs are dying when DB connect. I tried r3trans -d, it shows errors. SAP is not