Export Objects to JPGs by ObjectStyle

Hi all,
i'm looking for advice and help in scripting the follwing:
I have an InDesign document with multiple pages and certain elements/groups that i'd like to export to JPGs. Every element or group i'd like to export, has a certain object style applied for identification purposes.
Now i know that it is possible to export selections to JPGs like described in this thread. As i would need to select the items manually in the linked scenario, it isn't an automated process. Basically i need the same thing as the export selection to JPG script wihtout selecting the elements but identifying them by a certain object style instead.
Every help attempt is highly appreciated.
Regards, Martin

ollah,
var myBestObjectStyle = 'myBestObjectStyle';
var currDocPageItems = app.activeDocument.pageItems.everyItem().getElements();
l = currDocPageItems.length;
while(l--){
    curPageItem = currDocPageItems[l];
    if(curPageItem.appliedObjectStyle.name === myBestObjectStyle){exportToJPG(curPageItem);}
function exportToJPG(someFunnyPageItem){
    someFunnyPageItem.select();
alert('fireYourExport here ...')    ;
gives you the page item -> run the export from there ...
Hans-Gerd Claßen

Similar Messages

  • Adobe Illustrator Export to JPEG (*.JPG) vs ICC Color Profiles vs Behance

    Hi,
    I work with Adobe Illustrator CC 2014. When I export my projects into *.JPG format (using both: 'Adobe Illustrator > File > Export' and 'Adobe Illustrator > File > Save for Web') I use ‘Embed ICC’ profile option. Every common image viewer I use (including web browsers and Adobe Bridge) respects those color settings and displays exactly what has been embedded. But when posting on Behance, my color settings are converted into something else! The only solution is to place my Adobe Illustrator file into a new Adobe Photoshop document , then export it into .JPG (with embedded color settings) and then post it to Behance. With this workaround my colors look pretty correct.
    Did someone experience the same and  could explain why Behance doesn’t respect the Adobe Illustrator export with embedded ICC profile settings?
    one thing more – even if my *.JPG produced with Adobe Photoshop (the correct one)  is displayed correctly, the cover photo (taken from the original) is still converted into different (Behance’s default??) color space. I believe this shouldn’t work this way. Is there any workaround to this? Is there any way my covers (miniatures) display the 'true' colors?
    Please advise
    Best Regards,
    Pawel Kuc
    ccmutants.com

    ok. I give up. It seems that Adobe Illustrator can export only to the JPEG File Interchange Format (JFIF) and Behence doesn’t fully support this format (for example it cannot read its icc color data correctly):
    (JPEG) Formally, the EXIF and JFIF standards are incompatible. This is because both specify that their particular application segment (APP0 for JFIF, APP1 for Exif) must be the first in the image file. In practice, many programs and digital cameras produce files with both application segments included. This will not affect the image decoding for most decoders, but poorly designed JFIF or Exif parsers may not recognize the file properly (http://en.wikipedia.org/wiki/JPEG_File_Interchange_Format#Exif_comparison)
    I’ve analyzed my files using JPEGsnoop 1.6.1 (really cool app by Calvin Hass, http://www.impulseadventure.com/photo/) and here is what I’ve found:
    A) *.jpg produced with Adobe Illustrator > File > Export > JPEG > ICC profile embedded:
    *** Marker: SOI (xFFD8) ***
    OFFSET: 0x00000000
    *** Marker: APP0 (xFFE0) ***
    OFFSET: 0x00000002
    length     = 16
    identifier = [JFIF]
    version    = [1.2]
    density    = 72 x 72 DPI (dots per inch)
    thumbnail  = 0 x 0
    B) *.jpg produced with Adobe Illustrator > File > Save For Web > JPEG > ICC profile embedded:
    *** Marker: SOI (xFFD8) ***
    OFFSET: 0x00000000
    *** Marker: APP0 (xFFE0) ***
    OFFSET: 0x00000002
    length     = 16
    identifier = [JFIF]
    version    = [1.2]
    density    = 100 x 100 (aspect ratio)
    thumbnail  = 0 x 0
    C) *.jpg produced with Adobe Photoshop > File > Save As > JPEG > ICC Profile embedded
    *** Marker: SOI (xFFD8) ***
    OFFSET: 0x00000000
    *** Marker: APP1 (xFFE1) ***
    OFFSET: 0x00000002
    length          = 1320
    Identifier      = [Exif]
    Identifier TIFF = 0x[4D4D002A 00000008]
    Endian          = Motorola (big)
    TAG Mark x002A  = 0x002A
    EXIF IFD0 @ Absolute 0x00000014
    Dir Length = 0x0007
    [Orientation ] = Row 0: top, Col 0: left
    [XResolution ] = 720000/10000
    [YResolution ] = 720000/10000
    [ResolutionUnit ] = Inch
    [Software ] = "Adobe Photoshop CC 2014 (Windows)"
    [DateTime ] = "2014:08:02 17:21:15"
    [ExifOffset ] = @ 0x00A8
    Offset to Next IFD = 0x000000D4
    EXIF IFD1 @ Absolute 0x000000E0
    Dir Length = 0x0006
    [Compression ] = JPEG
    [XResolution ] = 72/1
    [YResolution ] = 72/1
    [ResolutionUnit ] = Inch
    [JpegIFOffset ] = @ +0x0132 = @ 0x013E
    [JpegIFByteCount ] = 1006
    Offset to Next IFD = 0x00000000
    EXIF SubIFD @ Absolute 0x000000B4
    Dir Length = 0x0003
    [ColorSpace ] = sRGB
    [ExifImageWidth ] = 200
    [ExifImageHeight ] = 200
    So unfortunately the only option to produce the EXIF JPEG from an Adobe Illustrator project is to: Export *.ai file to JPEG (under Adobe Illustrator) > go to Photoshop > Create new project > Paste the *.jpg > and Sava As JPEG with icc embedded.

  • Export objects

    Hi experts,
    I want to know plse if there is some tools for importing end exporting objects (programs, interfaces, forms, screens, dynpro, etc.) from system to system (not client) like program 'RSTXSCRP'.
    Thanks in advance.

    Hi,
    you can achieve this by using the tranport request. while developing store all your objetcs in one request. once the development is over u release the request it will export to some other system what you want.
    Reward if helpful.
    Regards
    Venkat
    Edited by: venkata prasad on Feb 20, 2008 11:29 AM

  • Export RAW to JPG question

    Hello,
    Here is once again a problem that I guess has to do with color management, and I'm having a hard time figuring out my mistake.
    I'm editing my RAW files in Lightroom 5 and then export them to JPG (my settings are JPEG 100% / sRGB / no sharpening or any other editing option).
    Then, to compare the RAWs and the JPGs, I import those JPGs back into Lightroom to make sure I'm seeing them with the same color profile (as I guess the basic "Preview" application I'm using on my MacBook is not color managed).
    My problem is that the JPGs are much brighter than the RAW files (see screenshots).
    I didn't calibrate my MacBook Pro's monitor (I'm just using Mac OS' standard color-LCD preset), and I'm not expecting other users to see my pics the way I see them on my screen, I'm ok with that, but I thought that on my own computer I would not see any differences between my RAW files and the JPGs I exported from those RAW files.
    I found some similar threads on that topic, but usually the problem was that the users were checking the JPGs in a tool that was not color managed, and so it would not match what they saw in Lightroom, but since I do check my exported JPGs in Lightroom, I assumed they would be represented within the same color space, with no noticeable differences...
    I'd appreciate if someone could tell me what I'm doing wrong!
    Thank you!

    To tell you the truth, a client asking for a 3MB JPG is a very meaningless thing to do.
    Any time you are changing the number of pixels on a side, you are changing the image quality. Any time you are forcing the photo to be a certain size in MB other than the maximum, you are accepting a certain reduction in image quality. Which is worse? It all depends on the original, and how much change you are asking for.
    So, that's my answer ... IT ALL DEPENDS.

  • Insufficient privilege: Can't export objects in schema..user has no privilege on the underlying objects

    I'm using SYSTEM user but
    HDBSTUDIO continues on triggering this error when I try to export the catalog:
    SAP DBTech JDBC: [258]: insufficient privilege: Can't export objects in schema DARTEL_TRANSPORTES. Can't export procedure DARTEL_TRANSPORTES.PAL_TRIPLE_SMOOTH_WRAPPER. user has no privilege on the underlying objects
    When trying to grant the SYSTEM user to that particular object  I get a new error : Could not modify user 'SYSTEM'. Several issues occurred
    Have anyone have struggled with this error before, any help will be highly appreciated
    Kind Regards

    rev 69 too
    tomorrow I will have the webex and let you know
    Something happenned after my customer change the suse's server IP, I had to perform a re-installation of SAP Business One only
    We were supposed to install using the hostname but no one of the installers let me use the hostname
    so it Kind of forced me to use the IP.
    After asking Support about that one of the specialists told me that he prefers to use IP instead of the hostname. So I used IP.
    Maybe this changed something I cannot detect yet. but tomorrow we'll see.
    KR

  • Export object having type as TYPE

    When we are exporting a schema objects having type as TYPE are not exported.
    How to export objects having type as TYPE in a schema.

    if u have using oracle 10. then try to export using expdp
    it will export
    if u have oracle 9 then try to export with tablespace export

  • EXP hung on Exporting Object Type Definitions

    Oracle 9i, Win2k3 Adv Server, Dual 2.4 CPU, 2.0 GB RAM
    I'm running an exp command and it has been 'Exporting Object Type Definitions' for over 14 hrs.
    The user has the same roles/privileges on another server and can export an identical db with no problem.
    Any ideas?

    Yeah, the user does have exp_full_database.
    User has connect, dba, both catalog roles, imp_full_database, and gather_system_statistics.
    More info:
    The export hangs when I try to do a full database export. When I try to just export a specific user, I get the following errors:
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    I have run catalog.sql and catexp.sql and it isn't helping.
    And no patches/updates have been done. I have also added select any sequence and it didn't help.
    Any ideas?
    Message was edited by:
    mattyk6

  • Could not view exported objects consistently...

    Hi,
    While export command operation has done.
    Let we want to know that "what are the objects exported"
    for this, we have to use v$active_session_history, all_objects in oracle 10g.
    using this above tables / views, we didn't get all object informations in the table / view.
    For an example.
    scott user has table as like as below.
    emp 16 rows
    dept 9 rows
    test 0 rows
    ex_test 82 rows
    ntest 24 rows
    otest 0 rows
    exp scott/tiger direct=Y
    For your information.
    [using conventional path also we couldn't get all objects]
    exp scott/tigger
    export operation has done.
    Then we want to know the above object informations using the data dictionary view / but we are getting
    some times 0 - rows table..
    some times 0 - row table with some other tables.
    some times only other tables [no other 0-rows tables]
    So now we could understand that we are not getting those object information consistently. - Correct..
    How we can collect it?
    Thanks for your kind interest to work on it as well as Advanced congratulation for getting any one valuable informatio for this.
    Cheers from...
    M.K.Thamaraiselvan
    [email protected]
    91-44-24992084 ext 30.
    91-9840568765

    Dear Pedro,
    First I would like to say Thanks for your kind consideration for this Thread {export Issue}
    As you told that i referred that document..
    Quite interesting one.. i went before too..
    As per that ref, patch updation in our database, it nevers give our expected one.
    For your information...
    We are doing
    export scott/tiger@orcl direct=y
    in Oracle 10g...
    scott user has about 5 tables as like as follows..
    emp 10rows
    dept 8 rows
    test 0 rows
    rajtest 23rows
    mtest 0 rows
    after completing export operation,
    we would like to get those exported object information from the data dictionary view which holds all sesssion information in the v$active_session_history.
    Here the issue is, we will be getting as follows...
    1.
    Any one of the object (table) in the list which has some no. of rows.
    2.
    Any one or two objects (tables) with 0 rows information
    3.
    sometimes there is no information regs. this objects for scott.
    How we can trace the exported object information from data dictionary tables / views.
    Advanced thanks for your kind information.
    Regards with cheers from...
    M.K.Thamaraiselvan.

  • How to export objects of specific schema?

    I need to export object of specific schema so please let me know how?
    Thanks,
    Waheed.

    First thing you want to do - decide whether you will use the exp/imp or the expdp/impdp (data pump) routines.
    To make THAT decision for 10g/11g look at CHapter 11 of the Concepts manual. (no decision in 9i - no data pump)
    Once that decision is made, use the appropriate parameters as found in the Utilities manual - for every version from Oracle version 5 on. The parameters are different between exp and expdp

  • Export as resized JPG

    Hi Guys,
    I am trying to find a way to export a page as a resized jpg (150px width, 219px height) All the contents of the page also have to be resized. So a perfect thumbnail is produced.
    This will be happening on the fly as the page is saved so the script cannot interfere with performance to much.
    I have spent hours on this now can anyone please help me?

    Hi Guys,
    Thanks heaps for your input. The script needs to be in VBScript as there is also a chance it will be VB.net.
    The script I have at the moment resizes each page item using a loop then resizes the page and exports as a jpg. This is no good to me because the jpg needs to be output when the page is saved so it also involves resizing page items back to original so the user can continue to work.
    I don't really care to much about the quality of the exported jpg(or gif I suppose) as long as all page items are viewable.
    The size just needs to be close
    I like the sound of the DPI theory whoever I don't understand the maths to calculate the correct output

  • How to export layer in jpg files ?

    Hi everyone,
    I am trying to develop  a plug-in  for Ai CS4 in which I need to export all the layers in jpg files. Could any one tell me the API that can help  me to  do so ?
    or any suggestion how I can do this.
    thanks in advance.

    Well, the AIRasterizeSuite (AIRasterize.h) will have tools that let you convert sets of art into raster objects in Illustrator. And the AIArtSetSute (AIArtSet.h) has methods that let you construct said art sets from the contents of layers. From there, you'd have to take the contents of the generated raster objects and save them out manually to JPEG.
    Oh, just found another that might be what you want. AIImageOptimization.h has methods like 'AsJPEG', which seem to take an art handle (which could be the group at the root of a layer from the sounds of it). So that would presumably let you do dump that to JPG. It uses AIDataFilters though, and I don't know how those work.
    I think this has come up before in this forum, so if you do da little searching you might come across some better help than me. It's definitely doable though.

  • Exporting B/W jpg Problem

    I have a wierd problem with InDesign CS4.  I have a blank document and I put a black frame on the page and then export the page as a jpg file.  When I open the jpg with Photoshop it opens in RPG mode, with the black frame having K = 91.
    1.  Why isn't this jpg being exported in grayscale mode?
    2.  Why isn't the jpg being exported with the black area K = 100?
    How can I make this work properly???

    It's not a bug, it's a feature. The Display setting doesn't matter (after all, it's just *your* display), but the Output one does. That way, if you have a color-on-black object and 'normal' black objects, you can see the difference: the color-on-black is darker than black. Just like when it's printed. The only way ID can simulate a color "darker than black" is by making the regular black lighter.
    Anyway, it seems you have found a solution.
    [Post-Ed] Peter's right -- please read the first paragraph the other way around (he's also right on PS having more to-the-point options).

  • Export problems to jpg

    Hi all,
    I'm using Indesign CS3 5.0 with Windows Vista, and having problems exporting to jpg. Help is highly appreciated!
    In brief, when exporting to jpg:
    * Settings:
    Export Spreads,
    Quality high,
    Format method baseline,
    Resolution 600ppi.
    Also several variations are used.
    * Issue:
    Some, but not all, pages show a horizontal 'band' of lighter color.
    My problems are identical to those posted but not solved last February by Alyson Clemons. She also posted some examples, see
    http://www.adobeforums.com/webx?128@@.3c06458a
    I also have the problems described by Alyson regarding PDF export, but I won't go into the those here; the JPG export is the most important for my purposes here.
    Thanks for your help!
    RUUD

    First, black is not necessarily the same color in all spaces, especially in CMYK. Black ink alone is going to look gray compared to any black areas in any image, which are always "rich blacks" composed of both Black and lesser amounts of C,M and Y, or of a mixture of R, G and B components that will be converted into a CMYK mix at print time.
    Among other things this allows for a much broader range of shade in the blacks (and consequently better shadow detail reproduction). The exact mixture is calculated to fit the characteristics of papers and inks in use on various devices, and is designed to give as dark a black as possible without using so much ink that it puddles or offsets onto the back of the next sheet before it dries. Some papers and printing technologies can handle more ink than others, so you will see darker blacks in those spaces.
    No matter what color you choose as your "black" background you are going to see transition borders in at least some areas where images are placed on top of it, simply because the background is uniform, and the image is not. Using a black formula from one of the images can help, but won't hide everything.
    > There is only 1 page that uses transparency, but it is lost in the PDF. I don't mind that the page is flattened but now the partially transparent objects are opaque in the final PDF, completely masking the underlying text.
    Transparency flattening is achieved either by calculating the values of the colors created by the overlapping objects if they use a process color or RGB, or by using overprinting for spot color inks. You should not be using spot colors in your design unless you actually intend to use a press and spot inks. Without seeing the file, I couldn't begin to guess what's going wrong precisely, but it is most likely a combination of your flattener settings and the PDF export options.
    You might find either, or both, of these articles helpful:
    http://indesignsecrets.com/eliminating-the-white-box-effect.php
    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php
    Also, it is generally considered good practice to keep text above any transparent objects to avoid having it rasterized or converted to outlines, but this isn't always possible, and may not be much of an issue for you in this project.
    Peter

  • Print module - exporting to a .jpg file - borderless printing

    I'm attempting to export a picture as an 8 x 10 .jpg file in the Print Module - I want the image to be borderless. I have gone ahead and changed my page setup to reflect the same dimensions, I've removed margins and I've also gone into the Layout section and adjusted my cell size dimensions and removed margins...I can't seem to get two borders to disappear - if it's a portrait image, the sides have white borders and if it's landscape, the top and bottom have white borders.
    Any help would be greatly appreciated. Thanks. If more information is required, let me know. Thanks!

    If your image is not in exact 8x10 (4x5) aspect ratio, you'll need to select the "Zoom to fit" box.
    Phil

  • Error while exporting objects

    Hi friends,
           I am getting the below error while exporting the objects from quality system(xi).
    Error-->
    "Workspace was not defined for software component version xxxx,1.0 of xx.com. Assign the software component version in the Landscape configurator of the change management service to a track."
    Thanks,
    Bharath.

    https://forums.sdn.sap.com/click.jspa?searchID=16530537&messageID=4024393
    Transport using CMS Export Error on Integration Repository
    go thru these for it.

Maybe you are looking for

  • I found my baby.. from XP to Linux

    Hey Archers, I have only begun my Linux journey about a few months ago after hearing about "Linux Mint" from a guy at Fry's Electronics. I installed Virtual Box and tried it out. It was very nice as everything worked out of the box.  I then began an

  • Need records from the last month

    Hi, using Oracle 11g R2. On the last day of each month of each year, I'd like to query data from a table over the last month. For example, if today is December 31st, 2013, I'd like to query only records with a settlement_dt between (and including) De

  • After full restore from Time machine, my TM hard drive won;t mount

    I got my macbook pro back from a logic board repair and restored it fully from Time Machine using my leopard install disc. Took a while, but it has installed OK. But some applications weren't restored and now the Time Machine drive won't mount on the

  • Websphere 6.1 64-Bit (Windows)  and native libraries shipped with CF8

    After more deep tests, i found the following issues: - Reporting does not work, because ctr files are crypted (why ?) and can't be decrypted (failed to load native library nvr_win.dll) It is possible to provide an 64-Bit version of nvr_win.dll ? Or,

  • Anyone on PeopleSoft 8.53 yet?

    I am testing TES 6.1.0.208 with PS 8.51. I was just told that 6.1 is not supporting PS 8.53 yet. Anyone tried yet?