Is there a way to populate an InDesign document with Pantone colors from a .csv document?

I have a CSV document that inputs copy information into various labels we have set up in InDesign, but we also have Pantone colors that we put into this document.  Currently, it just imports the color number and we manually change the color ourselves, but is there a way to automatically populate the colors into the document?

Hi,
Here is some code you may want to play with
Array.prototype.contains =  function ( object )
  var i = 0, n = this.length;
  for ( i = 0 ; i < n ; i++ )
  if ( this[i] === object )
  return true;
  return false;
function createLabels() {
  var filterFunction = function(file)
  return /\.csv$/.test ( file.name );
  var f = File.openDialog("Please select CSV Files…", filterFunction);
  var sep = "\t";
  var n = 0;
  var headers = [];
  var rows = [], row = [];
  var doc, m, pw,pb,ph, np, tf, tfo;
  var p;
  if ( !f) { return; }
  f.open("r");
  headers = f.readln().split(sep);
  while ( !f.eof ){
  row = f.readln().split(sep);
  row.length>1 && rows [ rows.length ]  = {contents:row[0], colorName:row[1]};
  n = rows.length;
  if ( !n ) {
  alert("No data");
  return;
  doc = app.documents.add();
  doc.documentPreferences.facingPages = false;
  m = doc.pages[0].marginPreferences;
  pb = doc.pages[0].bounds;
  while (n--) {
  row = rows[n];
  np = doc.pages.add();
  doc.importAdobeSwatchbookSpotColor ( row.colorName );
  tfo = {
  geometricBounds:[pb[0]+m.top, pb[1]+m.right, pb[2]-m.bottom, pb[3]-m.left],
  contents:row.contents,
  fillColor:doc.colors.itemByName ( row.colorName ),
  tf = np.textFrames.add(tfo);
  doc.pages[0].remove();
createLabels();
Sorry for not using the highlighting code option but it wasn't displaying the whole stuff :\
Loic
http://www.ozalto.com

Similar Messages

  • Is there a way to create a pdf that preserves all links from the origional document?

    Hi,
    I have a new, rather large, pdf document I need to create. After discovering that adobe will not reliably convert hyperlinks from an office document, I need a new strategy. Does anyone know of a program, other than office, that adobe will reliably convert the links in the origional document into links in the pdf? Or is there a different way to do this, other than adding links in adobe after I create the pdf?
    I have Windows 7, Office 2007, Acrobat Pro X, and IE 8 (I know... it's a work laptop)
    Thanks

    In iTunes, File>Print. Then select your options.

  • Is there a way to automatically build measure object with SUM(col_name) from INT DB column?

    Hello,
    I have a workflow that needs to be repeated every month and I'd like to optimize it.
    1. DB table in SQL Server 2008 looks something like this:
    TABLE [CONTRACTS_GCO_LVL2](
      [CONTRACTS_BP_ID] [varchar](50),
      [Flag 1] [int] ,
      [Flag 2] [int] ,
      [Flag 3] [int] ,
    2. I bring this table into my BOE IDT 4.0.3 and drag it into object folder. All INT columns become dimensions. This is not what I want. These are 1/0 flags for me and I need them to be measures with SUM aggregation.
    3. I select all these INT sourced dimensios and right click on them with "Turn into measure with aggregation function - SUM"
    The problem is that step #3 is unbelievably slow. I need to spend hours doing this as I have thousands of these flags. I end up selecting all dimensions from one screen and converting them at the same time. This takes 4-5 minutes. IDT runs on a Win 2008 R2 Enterprise server with 32 GB RAM and 4 CPUs.
    In Universe Designer there used to be external strategies that allowed some customization of how the objects get automatically created from DB tables. I know there are no strategies in r4 (External strategy for tables)  but is there anything else to make this process faster?
    Thank you all!
    Natasa

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • HT204074 I went to buy a song on iTunes and it said I have already purchased this item, but it's not in my library. Is there a way to populate songs that I have downloaded on past computers with the same apple ID?

    I went to buy a song on iTunes and it said I have already purchased this item, but it's not in my library. Is there a way to populate songs that I have downloaded on past computers with the same apple ID?

    If iCloud is available for your country, you should. Here is the article that has the steps on how you can do this:
    http://support.apple.com/kb/HT2519

  • Is there a way to package an InDesign CC book for earlier versions of InDesign - CS5 specifically?

    Is there a way to package an InDesign CC book for earlier versions of InDesign - CS5 specifically?

    You have to export the individual files to .idml, open those in CS5 and add the CS5 versions to a new CS5 book.

  • Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom

    Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom?
    I am using Cloud InDesign CS6 on Windows 7.

    You will need to go via your computer's iTunes - to get music into the Music app you either need to download it directly on the iPad from the iTunes store app, or sync it from your computer's iTunes

  • Is there a way to make a flip book with the InDesin version contained in Creative Cloud?

    Is there a way to create a flip book with the InDesign version contained in Creative Cloud?

    InDesign is the same in Creative Cloud as it is as a standalone producate and it's the same as the one contained in any bundles that include it. The exception being that you have access to both the Mac and PC versions purchasing via the subscription model (Creative Cloud).
    I have not created a flip book in InDesign, but if InDesign is capable of doing it, then InDesign as purchased apart of the Creative Cloud, is capable of it.
    Download the demo of InDesign CS6 to see. If you purchase a Creative Cloud account later on, you don't need to reinstall, just authorize by logging into your Adobe account.

  • Is there a way to create a flipping book with the flipping 5k adobe software?

    Am I the only one pissed with the f adobe products?
    Is there a way to create a flipping book with the flipping 5k adobe software? Is it Flash, etc?
    Thanks

    Maybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.

  • Is there a way to create a custom screensaver with pics/slides that display for different amounts of time?

    Is there a way to create a custom screensaver with pics/slides that display for different amounts of time? Or even add a "video slide" into the screensaver?
    My business has 3 TVs displayed in our lobby, each with its own apple TV and they are all linked to the same photo stream. Currently the Atv screensaver displays the photostream pictures of our products for the default 3 seconds. We just added pics/slides that now display messages and useful info for our customers but I want that info to be displayed for a longer period of time than the pictures to give people a chance to read it.
    I tried using flickr and powerpoint as a work around but no luck.  I created a slide in powerpoint with play length of 15 secs and saved it as a wmv file.  I added that file to a "screensaver" set in flickr and pointed the Atv screensaver to that flickr set.  It still displays everything, pics and the wmv file at the default 3 sec.
    I know I can increase the duration of all pics in the screensaver to display for longer but the goal is to have the pics display at 3 secs and the info slides to display at 15 secs.

    Welcome to the Apple Community.
    No that's not possible.
    If you have any suggestions that you think might enhance the Apple TV you can send Apple your feedback here 

  • Is there a way to delete multiple pictures at the same time from the iphone4s?

    Is there a way to deleter multiple pictures at the same time, from my iphone4s? I know how to delete one at a time. Thanks

    Open your Photos App > Camera Roll > At the top right corner you will see a rectangle with a right arrow, select that. Now you can select as many photos as you want and you can hit the red Delete button on the bottom right.

  • Is there a way to print the check register with the Text field

    Hi,
    Is there a way to print the check register with the Text field and also each item's Text field?"
    When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
    Kindly help me in full fill the above requirement.
    Thanks
    Sunitha

    Hi,
    Can any one help me on this issue?
    Thanks
    Sunitha

  • Is there a way to share one music library with two seperate icloud accounts?

    Is there a way to share one music library with two seperate icloud accounts? I have over 12,000 songs in my library and my son likes the same music, but recently his ipod touch is picking up the texts from my wife's and my phone? I was told the only way to stop this is by giving him his own icloud account which would mean he wouldn't have access to my music library. Any ideas?

    He can still use your Apple ID for iTunes content, no issues. He just gets a separate ID for everything else.

  • Is there a way to change the icon associated with icloud account?

    Is there a way to change the icon associated with my iCloud account? It's currently a rose and i do not like it.

    Welcome to the Apple Support Communities
    Are you referring to your iCloud account picture or your user picture?
    It looks like you are referring to your user picture. To change it, open System Preferences > Users & Groups, press the picture box and choose the user picture you want from the ones that came by default. If you want to select a different picture stored on your Mac, drag that photo onto the picture box.
    If you want to change your iCloud account picture, open http://www.icloud.com and log in with your Apple ID. Then, press your name at the top right of the site and press the user picture. If you put the cursor on the picture box, you will see a button at the top of the box to change your picture

  • Is there a way to track "pages viewed" progress with PDF's?

    Is there a way to track "pages viewed" progress with PDF's?
    Example: Student downloads a PDF from school portal -- Teacher can track who downloaded PDF, when and how many pages were view (where student stopped)? Similar to Flexpaper?

    The only other way I can come up with at the moment is by submitting the data via a URL to your server... The user will still have to allow the URL to be opened, though.

  • Is there a way to run a external ssd with my mid 2011 iMac hdd in a raid configuration and basically have a fusion drive

    is there a way to run a external ssd with my mid 2011 iMac hdd in a raid configuration and basically have a fusion drive

    A Fusion Drive is not a RAID; it's a CoreStorage logical volume group. While it's technically possible to do as you suggest, there would be little or no benefit from it.

Maybe you are looking for

  • How can I save space on Hard Drive? Lo-Res Previews like Aperture.

    I have searched these forums and the internet but not found a solution as yet. My problem is I have a MacBook Pro and the hard drive is getting full. I want hi-res images on an external hard drive but have a lo-res preview on my hard drive so I am ne

  • Multiple post mystery

    I've just caught myself sending multiple posts. I'm not sure exactly which sequence of keys I hit, but when I pressed the spacebar, I noticed the screen flashing and stopped typinf.  Fortunately, only two made it and I cancelled the third one.  I may

  • ABAB help

    hi folks, I am working on the user exit (ZXPADU02) and I was trying locate the main program that was calling this include program. This is what I got. program name: SAPLXPAD - it is a Function Pool program that has the include program LXPADUXX (has a

  • Nokia 5530 switches off when making/receiving call

    Hello , i have strange problem with nokia 5530. Its just switches off when making/recieving a call. I read nokia discussion of Europe and USA. there are number users who have same problems i have it now. I've gone to nokia care and hope they can give

  • JDBC ORA-01017 invalid username/password; logon denied

    I have an application that uses a JDBC Type 4 driver to connect to an established development database. This application has been running fine for the last few months. I resized the datafiles pertaining to the tablespace associated with the database