EPS Javascript saves more than visible object

In prior versions of illustrator we used a script that basically saved the visible bounds of a masked object as an EPS file. With the upgrade to CS4 and Multiple Artboards this save function (EPSSaveOptions) no longer does the same visible bounds. I have read several post of similar issues, but what I am asking is:
In there a way to make the visible bounds of the eps file equal the artboard on the active artboard only? The artboard seems to be driving the crop box. When I manually save the file as EPS the visible bounds are correct. When I save from the script it is not? As with other posts I do not want to go backwards within compatibility...I would like to keep the file at the CS4 level. What command am I missing? We have tried making the crop box = visibleBounds to no avail.
Any help would be appreciated...my last resort is to report this bug to Adobe to see if they have a patch.

*later edit* why dun u just get first artboard of the document.artboards collection, set it's bounds to the object you want to export and set artboardRange of the EPSSaveOptions to 1 ... this will export only the visible bounds of the object.
Something like:
var myWorkingArtboard = app.activeDocument.artboards[0];
//masked object takes my mind to something in a clipping mask
for(j = app.activeDocument.pathItems.length - 1; j >=0; j--) {
     if(app.activeDocument.pathItems[j].clipping ==true) {
          //we just found our clipping mask; the bounds of the pageItem must be the visible bounds of the clipped object so...
          myWorkingArtboard.artboardRect =  app.activeDocument.pathItems[j].geometricBounds; //because stroke and whatever else will not be part of the clipping mask
var myEpsSaveOpts = new EPSSaveOptions();
myEpsSaveOpts.saveMultipleArtboards = true;
myEpsSaveOpts.artboardRange = "1";
//rest of the export code here

Similar Messages

  • How can I "Save" more than 1 page at a time?

    Firefox 4.0.1. Safari 5.0.5. iMac OS10.6.7. Just started using Firefox. Can't figure out how to Save more than 1 page at a time. Tried to save 3pp article in NY Times, several times in several ways. No deal. Went back to Safari and did it easily. Probably because that's what I'm used to. How do you do it on Firefox? This is probably a dumb question, but please be kind. Any reply appreciated. I've spent a couple of hours trying to solve this myself.

    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
    You can see the difference if you use Alt+F to open the File menu or Alt+B to open the Bookmarks menu and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    * "Bookmark All Tabs" (Shift+Ctrl+D) no longer shows in the Bookmarks menu unless you open the Bookmarks menu via the keyboard (Alt + B).
    * "Bookmark This Page" can be accessed via the right-click context menu of that browser page.
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.
    See also:
    * [[How do I use bookmarks?]]
    * Bookmark All: https://addons.mozilla.org/firefox/addon/bookmark-all/

  • How do I save more than 5 emails in a folder on my iphone 4s?

    How do I save more than 5 emails in a folder on my iphone 4S? It only holds 5! It automatically drops off the oldest, 6th
    email. Is there a way to hold more?????

    Swiping does nothing. I save 5 emails in a folder and if I save
    The 6th one the first one drops off and Is deleted. It's not even
    On my desktop. Is there some way to expand the size of what
    You save in folders?

  • Selecting more than one object at a time

    Hi guys and girls
    I am trying to select more than one object on my artboard and Shift+clicking on the next one isn't working...
    I am creating an interactive form in Indesign and realised that I have everything on one layer... I have radio buttons for yes/no questions and I wanted to move them to a new layer for ease of selection and editing...
    I have tried selecting one and then Shift+Click on the next but it just moves which one is selected...?
    I even tried creating a new layer and dragging them up to the new layer...no Dice?
    Has anyone any ideas....Please!
    bookie56
    P.S. Just realised that the radio buttons are part of the text? Could this be the reason why I can't move them. Doesn't solve the question about selection though

    Hi AnshulJain19
    OK! sort of guessed that....thanks for coming by.
    I am still on this form and have created multiline text boxes for two of my text boxes.... have checked the positioning of the boxes - but when I write in the box in Adobe Acrobat the text is quite a long way above the line...this is only happening with the multiline boxes.
    Is there a way to export a font colour for the boxes or does this need to be done in Acrobat Reader...?
    I have a standard dark background for my page and that needs a White font...when I fill the form in it is black...
    bookie56

  • How to save more than 2 records at a time in tabular form?

    I have a table name SAMPLE_TABLE, which has SNO,NAME items and one sequence name is SEQ_SAMPLE.
    i have one form based on SAMPLE_TABLE. my form is in tabular format, which has 5 records.
    in the layout wizard only NAME is displayed. SNO doesnot displayed.
    in the layout wizard, there is one push button named as SAVE.
    the code of SAVE button(When_Button_Pressed) is
    insert into sample_table values(seq_sample.nextval,:sample_table.name);
    clear_record;
    commit;
    my problem is :
    when ever i want to save one record at a time there is no problem.
    if i want to save more than 2 records at a time then sequence number is alloted for last record. other records have no sequence numbers.
    for example i want to insert 2 names as XYZ,PQR then
    the table look like this:
    sno name
    1 PQR
    XYZ
    if SNO is primary key then it doesnot work because of null value.
    can any one solve my problem?
    Thanks
    Meegada

    Is the block a database block or a control block,
    1. if database block, assign the primary key on a
    trigger like new record instance for each record
    enteredour's is a control block, ididnt get your point clearly
    could you make it clear how to assign a primary key on a trigger
    our criteria is we are having two block as lov_values and lov_name
    lov_values:
    lov_values_id (sequence generated)
    lov_id will be same for the all the values for a particular lov_name
    lov_values will be which we enter in the form which will be the only visuble colums on the form
    lov_name block:
    lov_name
    lov_id(sequence generated)
    could you help me with the code
    thanks
    prasad

  • How to save more than one Contact Person in CRM

    Hi experts,
                     How to save more than one contact persons in CRM opportunity Application?
    I am using following Function Module...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_partner        = lt_partner_com
        CHANGING
          ct_input_fields   = lt_input_fields
        EXCEPTIONS
          error_occurred    = 1
          document_locked   = 2
          no_change_allowed = 3
          no_authority      = 4
          OTHERS            = 5.
    I am giving the input field name as 'PARTNER_FCT', 'PARTNER_NO', 'DISPLAY_TYPE', 'NO_TYPE', 'MAIN_PARTNER' and 'RELATION_PARTNER'.
    The problem is it is saving only one contact person, not more than one.
    Please help me how to save more than one contact persons.

    In SPRO partner processing this needs to be configured.

  • Methods that return more than one object.

    Hello everyone,
    I don't know if this has ever been proposed or if there's an actual solution to this in any programming language. I just think it would be very interesting and would like to see it someday.
    This is the thing: why isn't it possible for a method to return more than one object. They can receive as many parameters as wanted (I don't know if there's a limit), but they can return only 1 object. So, if you need to return more than one, you have to use an auxiliary class...
    public class Person {
       private String name;
       private String lastName;
       public Person(String name, String lastName) {
          this.name = name;
          this.lastName= lastName;
       public String getName() {
           return name;
       public String getLastName() {
           return lastName;
    }So if you want to get the name of somebody you have to do this, assuming "person" is an instance of the object Person:
    String name = person.getName();And you need a whole new method (getLastName) for getting the person's last name:
    String lastName = person.getLastName();Anyway, what if we were able to have just one method that would return both. My idea is as follows:
    public class Person {
       private String name;
       private String lastName;
       public Person(String name, String lastName) {
          this.name = name;
          this.lastName= lastName;
       public String name, String lastName getName() {
           return this.name as name;
           return this.lastName as lastName;
    }And you would be able to do something like:
    String name = person.getName().name;and for the last name you would use the same method:
    String lastName = person.getName().lastName;It may not seem like a big deal in this example, but as things get more complicated simplicity becomes very useful.
    Imagine for example that you were trying to get information from a database with a very complex query. If you only need to return 1 column you have no problem, since your object can be an array of Strings (or whatever type is necessary). But if you need to retrieve all columns, you have three options:
    - Create 1 method per column --> Not so good idea since you're duplicating code (the query).
    - Create and auxiliary object to store the information --> Maybe you won't ever use that class again. So, too much code.
    - Concatenate the results and then parse them where you get them. --> Too much work.
    What do you think of my idea? Very simple, very straight-forward.
    I think it should be native to the language and Java seems like a great option to implement it in the future.
    Please leave your comments.
    Juan Carlos García Naranjo

    It's pretty simple. In OO, a method should do one thing. If that thing is to produce an object that contains multiple values as part of its state, and that object makes sense as an entity in its own right in the problem domain--as opposed to just being a way to wrap up multiple values that the programmer finds it convenient to return together--then great, define the class as such and return an instance. But if you're returning multiple values that have nothing to do with each other outside of the fact that it's convenient to return them together, then your method is probably doing too much and should be refactored.
    As for the "if it increases productivity, why not add it?" argument, there are lots of things that would "increase productivity" or have some benefit or other, but it's not worth having them in the language because the value they add is so small as to no be worth the increase in complexity, risk, etc. MI of implementation is one great example of something that a lot of people want because it's convenient, but that has real, valid utility only in very rare cases. This feature is another one--at least in the domain that Java is targetting, AFAICT.

  • Not able to save more than 2000 characters

    Databse - SQL server 2000
    I am using jdbc to save some text in sql server 2000 database. column is of type ntext.
    If text is more than 2000 character, i am getting an error.
    I tried changing the connection setting to sendstringparameterasunicode=false. After setting this property i am able to save more than 2000 characters, but i am not able to save some special characters. eg - . I am not able to save “abc” but i can save "abc". So it is not recongnizing the double quotes in the first scenario.
    Amit
    Edited by: rushtoamit on Feb 22, 2010 8:48 AM

    No idea. But it isn't a java nor jdbc (general problem.)
    Thus if you are seeing something that tells you it is too big it either comes from the driver or the database.
    So your solutions are
    1. Use a different database and driver
    2. Use a different driver
    3. Modify your code

  • Iphone6 why can't I save more than one contact?

    iphone 6 why can't i save more than one contact?

    Hi Diovani
    Two different processes can have different task initiators...task initiator means creation of a process instance which can happen only once

  • Ηοw can i save more than 1 tabs when close my motzila

    Ηοw can i save more than 1 tabs when i close my motzila
    and when i started again opening the same tabs

    If you always want to open with the tabs from last time, click the orange Firefox button then select Options to open the options window. Go to the General panel and change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • Save More than 1000 chars in a field of (Z) Database Table?

    Hi Friends,
    I created a database table with few fields. In the table, one field is REMARKS which should save more than 1000 characters for every record. For that field,  I created domain & data element of char with 2000 length. But system gives an error representing that "Should not be more than 255 chars ".
    Even, select statement is also retrieving 132 chars only, if remarks are less than 255 and greater than 150 chars.
    Could you please provide me solution?
    Thanks
    Sarayu

    Hi,
    The Most simple solution for it can be that Divide the field REMARKS of size 1000 in multiples of 200 characters like REMARK1, REMARK2....REMARKn.
    Now you can create two FMs :
    zset_data:  To Store 1000 char long data in Table
    Here you will divide the data of Variable (type char1024) in multiples of 200 and will store in REMARK1, REMARK2.....
    zget_data: To Get 1000 char long data back from Table
    Here you will concatenate REMARK1, REMARK2..... and will store in Variable of Type char1024.
    This is the best solution if Table is not going to be maintained by Table Maintenance Generator.
    Thanks
    Ajay

  • ___When I have a multi page Ai file and 'Save as', it saves more than just the page I specified

    When I have a multi page Ai fil e (50 pages) and 'Save as', it saves more than just the single page I specified (ie. Range 1-1)... it saves all 50 over again? How do I just save 1 of the 50?

    Just answered my own question - if I use 'Save a copy' it works... must be a glitch

  • If possible, one SoftReference refer to more than one object?

    Hello,
    I want design a cache to keep huge number objects.
    If create a new SoftReference intance for each object,
    will take a lot of space and time.
    So, one SoftReference refer to more than one object, if possible?

    or arrange your objects into buckets somehow and have
    soft references to the bucketsEn, It's a good idea. but I think it doesn't work.
    My problem is:
    There are many caches(cache1, cache2.......), they may cache a lot of same object instance.
    then, I want to keep a object pool, and try to get the equal object from pool before put a object into a cache, if there is an equal object, put the equal object into cache, if there is no equal object, put the target object into pool and cache. the object pool may very huge because there is lot of objects. So it's necessary to release the object in the pool if no cache referes to the object(the caches contain the object may removed). Then SoftReference come into my mind. I try to create a SoftReference for each object in the pool, but soonly, I find there are two problems:
    1, A lot SoftReference instances take much memory.
    2, Need some time to new and reclaim the SoftReference intances.
    I think SoftReference may work fine to cache the object frequently used,
    but the object number can't be too large.
    Now, I don't use object pool. replace starting a thread to scan those cache s and combine the same objects intervally. It can scan about 2000,000 objects one second in my pc. It's ok for my project. But I am looking for some better way still.

  • [Q] Can Vision track more than one object in a same area - objects that might cross?

    Hi,
    Sorry for that long title, but that's my question.
    Can Vision track more than one object in a same area - objects that might cross?
    Because I'm able to do it, extracting XY, but it looks like "IMAQ Count Objects" doesn't track object frame after but frame, but extract the XY coordinates always in the same way, like example starting from top and everytime he sees an object, he extracts the XY, but if the objects cross (then he will extract XY without caring which objects was the previous one but just based on "scan from top to bottom").
    This is why I opened this topic in the non Vision forum part : http://forums.ni.com/t5/LabVIEW/Sort-XY-by-closest/td-p/2440428
    Thank you,
    Sébastien
    Solved!
    Go to Solution.

    Hi,
    In fact, IMAQ count object order the object regarding their top most and left most pixel, but not regarding their gravity center point.
    Axis origin of an image is situated on the left top corner.
    You need to refer to other caracteristics such as shape or color to identify your objects.
    Regards

  • How do I save only the VISIBLE objects in AI to Pdf or jpeg.

    I have multiple layers but only want to save the currently visible elements objects out in a PDF or JPEG,
    how do I do this without having to tediously double click each layer and choose "do not print" (layer).
    would be nice to have a preference in prefs to "not print hidden layers".

    You can choose to have your non-visable Illustrator layers preserved but invisible in your PDF, or removed completely. To remove them, select Acrobat 5 compatibility or earlier, or deselect the preserve layers option. If you include your invisible layers there is a possibility they will re-appear in some PDF viewers.
    http://forums.adobe.com/message/4964425#4964425

Maybe you are looking for

  • 520: Where to put my docs for use by Office? By ...

    I am new to the Lumia 520.  I want to use it in offline mode, that is, without the internet or phone usage.  So - no Skydrive. I want to view and edit MS Office documents, such as Word and Excel files, that I have created on my desktop PC.  I can tra

  • (Mac) Malloc in export JPEG

    When exporting to JPEG, I get the following error: InDesignServer(1039,0xacc502c0) malloc: *** mmap(size=1512448000) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug This happens when exporti

  • Forcing a refresh in Adobe Content Viewer?

    I'm trying to update an InDD CS6 article with updated .OAM links  (the links have new file names). But the iPad refuses to load some of the new animations or will only load the poster image of an .OAM file. If I copy one of these problematic pages in

  • Help me understand my up-stream speed

    Despite having excellent down-stream speed, I have been having problems with insufficient up-stream bandwidth for a long time. This causes me problems with a Vodafone Sure Signal to the point that I can't really use it for my mobile calls unless ther

  • Query run time increases with subsequent runs.

    Hello All I am looking for some hint about if someone else has faced such an issue in OBIEE We are trying to enhance performance of some OBIEE Analysis reports. Every time we do a change and deploy out changes the report runs very quick like in 40 se