AI CS3 Plugin: How to get the file format that is selected in the "save as" dialog??

Hi,
Someone please help me in getting the file format that is selected in the "save as" dialog. I wanted to retrieve it in the string format.
I tried sAIDocument->GetDocumentFileFormat. But i'm unable to implement it correctly. Is there a better way or How do I implement this? Precisely, I wanna get the value as a string when the user selects "save as .pdf".

Do you really need to know the file type? What about just checking the bit depth?
var doc = activeDocument;
if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
doc.bitsPerChannel = BitsPerChannelType.EIGHT;
//do your save etc
}else{
    //Ignore

Similar Messages

  • Getting error "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    How to fix this problem
    "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    When I have seen this message it is either when I try to open a document with an older version of Indesign E.g. an indesign 2014 document with Indesign CC.
    The other time I have seen it is to open an Indesign CC document with Indesign 2014 which does not have Mindsuite - a plugin I use. Mindsuite, as yet, has not upgrade the plugin for Indesign 2014 therefore it recognises that a the document was created withe a plugin that the 2014 version does not have installed.
    I believe your problem will be something like that.

  • I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file

    I am running InDesign CS5.5 and trying to open an In Design File but getting an error message. " Cannot open the file "PDavidLCover.indd". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file me be open in another application."Please help I really need to get this file open.

    Since you've shown us the folder contents it's a good bet it isn't in use (no lock file). And it doesn't look like the file is mis-named as there doesn't seem to be anything else there that would be the .indd file (but just in case, open it in TextEdit and paste the first few lines here so we can see what the file header says), so the most likely case is the file is damaged. Is that on a removable device of some sort?
    You can try the tool at Repair corrupt InDesign Adobe files on Mac OS X  or send me a link to the file by private message and I'll try the recovery tool I have for Windows.

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • JPG fine in Photoshop but error in After Effects: "The file format module could not parse the file (45::36)"

    I found a lot of discussion on this error in Photoshop but I'm getting it in After Effects.  I have a sequence of JPG images created by photoshop (output is RGB in sRGB color space) and it appears one of them is causing problems in AE.  There are several hundred images in the sequence, all created from PS, and only this one is causing problems.  I've re-created it several times in PS and the error persists.  I've also re-created several others and they're still fine.
    I've seen other comments that the issue is with incorrect file formats and CMYK color space.  I've confirmed that neither of those is my problem - the file is JPG straight out of PS in RGB.  Also, there are several hundred others that are just fine using the same process and "save as" properties...
    Any help?
    Thanks,
    rgames

    Have you stripped its metadata in Bridge? Could well be that it contains botched info from the camera. PS carries this through until the bitter end. Alternatively save it with Save for Web choosing to remove metadata.
    Mylenium

  • Hello- I would like to have new pages open in a separate tab automatically...(i.e., Google--- Google listing---click on listing-----auto open new tab and put the page of the google listing that I selected, on the new tab. Thanks. RMartinez

    Hello again-
    Here is my scenario-
    I am browsing, and let's say, I'm on Google. I look up "albatross novels." I get 6 hits. I look at the list, and I pick one of them. I double-click on it, and away we go. My current Google search page is REPLACED by the selected "albatross" site. But it's not exactly what I want. So now I click the BACK ARROW to go back to the Google page, to look at the other 'albatross" hits. And now I find another site, replacing my Google page when I open it......And THAT site takes me to another site, and another, and yet another......But then I realize that the first site WAS the best one. Now I have to hit the back button 15 times and probably NOT reach the Google page from which I started.
    But if I could have the new pages open in a new tab, then I could go back and forth between all the pages without worrying about the back button.
    I am sure that this is just a setting change somewhere, but I can't find it....I do have it on my work computer.
    Thanks/Rod Martinez

    When I open a link from a search it does open in a new tab ''(it is new, but it is at least in Firefox 4+)''<br>
    '''browser.search.openintab''' user set '''true'''
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config entries] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config] (How to change).
    You will find interesting reading on tabs in
    * '''Tabbed Browsing''' in Firefox<br>http://dmcritchie.mvps.org/firefox/tabs.htm
    * '''Tabs configuration''', extracted from About:config entries - MozillaZine Knowledge Base<br>http://dmcritchie.mvps.org/firefox/tabs_config.htm
    * 001 '''Tab Capacity Test'''<br>http://dmcritchie.mvps.org/firefox/tab_capacity/001_with_underscore.htm##
    * '''Tab Color Underscoring active/read/unread''' (Fx3.6) - Themes and Skins for Browser - userstyles.org<br>actually colors all borders not just an underline-- see picture in Tabs Bar Minimal Size<br>http://userstyles.org/styles/24728
    * '''Tabs, Enlarge list-all-tabs button''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/18553
    * '''Tabs Bar Minimal Size''' - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/9043
    From a Google search you should have the pages open in another tab, but with Google that is not quite good enough because they have them open all in the same new tab ''as you noticed so you've done that''.
    * Search and Substitution Shortcuts especially for Firefox users<br>http://dmcritchie.mvps.org/firefox/search.htm
    You can use '''Ctrl+click''' or '''Ctrl+Shift+click''' to open a link in a new tab.
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://dmcritchie.mvps.org/firefox/keyboard.htm
    You can use '''app-tab''' to pin the tab, right-click on the tab and choose pin-tab and the opposite to unpin tab, or delete the tab when done.

  • How to get rid of advertisements that appear on both the left and right of my web browsers

    Recently i noticed that when i open either Firefox or Safari, the page will load but a few seconds later, two identical ads appear on both sides of my browser and partially obstructing the webpage that i'm on... PLEASE HELP!
    this is what it looks like.... http://i43.tinypic.com/2q8aj9s.jpg

    Make sure 'block pop-ups' is selected in both browsers.
    Firefox Preferences>Content tab; Safari Preferences>Security tab.
    For both browsers download AdBlock:
    Firefox - https://addons.mozilla.org/en-US/firefox/search/?q=AdBlock&cat=1%2C0&appver=11.0 &platform=mac
    Safari - https://extensions.apple.com

  • Changing the file format of spool output when scheduling a background job.

    Hello Experts,
    I have an issue. It is related to Spool output format. I created a job for one report program for which the output is a list output. I have added one recipient in the 'Spool list recipient' while creating the job SM36. After the job is finished the spool output is sent to the recipient mail id as .htm format as an attachment. But the attachment should be excel sheet or text file. No coding in the program should be used to convert the file format. Only settings in the spool while creating job should be manipulated. Please help me in solving this issue.
    Regards.

    Hi Sunil,
    You can use the logic for converting spool to PDF using program : RSTXPDFT4 . Alternatively you can use FM: CONVERT_ABAPSPOOLJOB_2_PDF . In this FM you need to pass the Spool id .
    u can make use of these FM's SO_DOCUMENT_SEND_API1
    SO_NEW_DOCUMENT_SEND_API1
    Check out the following wiki:
    https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertsspoolrequestintoPDFdocumentand+emails
    hope this will use full to you.
    Thanks!!

  • How to get Bursting file to use the same template as selected by user

    I have created an XML publisher bursting control file for a standard Oracle report Direct Debit letter.
    The user wants to be able to select from a number of different letter templates which is ok except that the bursting control file is fixed to use one template.
    How can I get the bursting control file to use the same letter template as selected by the user when running the report ?
    I am using XML Publisher 5.6.3 with bursting patch.

    Try these following, which come to my mind now as of now.
    In the bursting file, you can do the filtering and apply different template..
    <xapi:template type="rtf" location="/usr/template1" filter=".//DIRECT_DEBIT[./parameter_or_element='first_template']"></xapi:template>
    <xapi:template type="rtf" location="/usr/template2" filter=".//DIRECT_DEBIT[./parameter_or_element='second_template']"></xapi:template>
    second option..
    you can replace the element from the xml in the bursting control file.
    ${ELEMENT_NAME}
    can be used in the template name i guess..
    <xapi:template type="rtf" locale=""
    location="xdo://AR.${SHORT_NAME}.en.US/?getSource=true" translation="" filter="">
    </xapi:template>
    But in this short name has to be in XML file...
    I haven;t tried it...wil try it wheni get time..

  • How do I convert an excel (2008) document to Numbers?  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid"

    How can I convert an Excel (2008) document to Numbers.  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid.

    That extension identifies the most current Excel file format, a format that can be opened by Numbers '09 (and by Numbers '08).
    A check with Numbers '09 shows it capable of opening .xlsx files when right-clicked (and Numbers chose as the application to open, when double-clicked (if Numbers has been set as the default application to open this type of file, or when dragged to the Numbers icon in the dock.
    I see two possibilities for Numbers inability to open it and the message you receive:
    1. The file is not actually an Excel file, and the sender has added the .xlsx extension to the filename manually.
    2. The file is an Excel file, but has somehow been corrupted.
    Have you tried opening the file with a different application? The open source Office suites, OpenOffice.org, LibreOffice and NeoOffice can also open .xlsx files. If they're unable to open this one, that would point toward the file itself being faulty. You can download these applications from their rspective websites, linked in the names above. All request a donation to support future development, but only Neo requires one to have been made recently, and that only for the current release (which won't be necessary to open .xlsx files).
    Regards,
    Barry

  • HT201250 My time machine back has been working perfectly well until yesterday when it failed. The error message I get is Files can't be copied onto the backup disk because it appears to be read-only. How do I fix it?

    My time machine back has been working perfectly well until yesterday when it failed. The error message I get is Files can’t be copied onto the backup disk because it appears to be read-only. How do I fix it?

    Hello,
    http://pondini.org/TM/C6.html

  • HT3775 My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable

    My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable codec?  Thanks for uour help!
    Ken Selvidge ([email protected])

    I am not a computer savy person.  I just need to plug in and have the machine do what it should do.
    Not a problem, but that indicates you have a lot to learn.
    File extensions like mpeg, mp4., avi, wmv, etc. are just wrappers. It is like a box the audio or video content is placed inside. The audio and video content must be encoded with a codec before it is placed in the box. There are thousands of codecs. Not all are installed on your Mac. You must have the same codec installed that encoded the video in order to play it. So, while Quicktime does support mpeg wrapper, it may not have the codecs to decode the internal video.
    Some programs have lots of the codecs available to them, like VLC, Niceplayer, MPlayerX, etc.
    You can also get "plug-ins" for Quicktime that add codecs to Quicktime, like Perian. Although it is no longer being developed, Perian still works well.
    Why is it so difficult? Probably because they are always working on ways to compress the video to get better playback.

  • I have photoshop C6 on my MAC Pro and want to install it on my new MAC desktop.  I sent the files with AirDrop but photoshop wont open I get an error message that it cant find the Library.  Any thoughts?

    I have photoshop C6 on my MAC Pro and want to install it on my new MAC desktop.  I sent the files with AirDrop but photoshop wont open I get an error message that it cant find the Library.  Any thoughts?

    download the installation files and install using your serial number or adobe id,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

Maybe you are looking for

  • Multiple Tables in Pages

    I am trying to set up a template which will use multiple tables. The first couple of tables (4Rx3C; 11Rx3C) work fine. The 4x3 table is across the top and the 11x3 table is on the left hand side of the page below it. I would like to add two more tabl

  • 1KEK Transfer payables/receivables does not work

    Hello all, The 1KEK report does not work. Though it says "data was copied from co code" it does not reflect in the PCA reports. Nor does it show any log. No document is created. Are there any config settings to make this happen ? We have new GL but d

  • Example of  Interactive ALV Report

    Hi all, Can anyone give me simplest example of Interactive ALV Report. Please give some description with that so that i can understand it .. Thanks Raj

  • I moved songs within my iTunes media folder and now my iPod can't find them

    Hello.  I have a few albums in my iTunes library that organize the artists by such folders as Artist feat. So-and-So.  This makes it difficult to scroll through artists on my iPod and in my car.  So I moved those songs that are in those folders to th

  • How to access SAP netweaver development Studio and PDK?

    Hi All,   I have access to EP server on my machine with super admin role .Is there any way I can acess SAP netweaver Developer Studio and PDK through EP server or I have to install in my local machine? Thanks in advance, Jasmine.